| Modifier and Type | Field and Description | 
|---|---|
| protected Collection<Class<? extends Annotation>> | eventTypes | 
| protected ConcurrentMap<String,Collection<ScopeEventBinding>> | listeners | 
| Constructor and Description | 
|---|
| DefaultScope(Class<? extends Annotation>... customEventTypes) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addScopeEventListener(Object object)Registers annotated methods of an arbitrary object for this scope lifecycle events. | 
| void | postScopeEvent(Class<? extends Annotation> type,
              Object... eventParameters)Posts a scope event to all registered listeners. | 
| void | removeScopeEventListener(Object object) | 
| <T> Provider<T> | scope(Provider<T> unscoped) | 
| void | shutdown()Shuts down this scope, posting  BeforeScopeEndandAfterScopeEndevents. | 
protected Collection<Class<? extends Annotation>> eventTypes
protected ConcurrentMap<String,Collection<ScopeEventBinding>> listeners
@SafeVarargs public DefaultScope(Class<? extends Annotation>... customEventTypes)
public void shutdown()
BeforeScopeEnd and AfterScopeEnd
 events.public void addScopeEventListener(Object object)
public void removeScopeEventListener(Object object)
public void postScopeEvent(Class<? extends Annotation> type, Object... eventParameters)
Copyright © 2001–2023 Apache Cayenne. All rights reserved.