| Modifier and Type | Field and Description |
|---|---|
| private final AsyncRunLevelContext | |
| public static final String | CONTEXT_NAME
The name under which this context will be advertised |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | containsKey(ActiveDescriptor<?> descriptor)
Implements org. Determines if this context has a value for the given key |
| public void | destroyOne(ActiveDescriptor<?> descriptor)
Implements org. This method is called when |
| public <U> U | findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
Implements org. Creates a contextual instance of this ActiveDescriptor by calling its create method if there is no other matching contextual instance. |
| public Class | getScope()
Implements org. The scope for which this is the context |
| public boolean | isActive()
Implements org. True if this context is active, false otherwise |
| public void | |
| public boolean | supportsNullCreation()
Implements org. Returns true if the findOrCreate method can return null |
| asyncRunLevelContext | back to summary |
|---|---|
| private final AsyncRunLevelContext asyncRunLevelContext | |
| CONTEXT_NAME | back to summary |
|---|---|
| public static final String CONTEXT_NAME The name under which this context will be advertised | |
| RunLevelContext | back to summary |
|---|---|
private RunLevelContext(AsyncRunLevelContext asyncRunLevelContext)
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(ActiveDescriptor<?> descriptor) Implements org. Doc from org. Determines if this context has a value for the given key
| |
| destroyOne | back to summary |
|---|---|
| public void destroyOne(ActiveDescriptor<?> descriptor) Implements org. Doc from org. This method is called when
| |
| findOrCreate | back to summary |
|---|---|
| public <U> U findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root) Implements org. Doc from org. Creates a contextual instance of this ActiveDescriptor by calling its create method if there is no other matching contextual instance. If there is already a contextual instance it is returned. If parent is null then this must work like the find call
| |
| getScope | back to summary |
|---|---|
| public Class Implements org. Doc from org. The scope for which this is the context
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() Implements org. Doc from org. True if this context is active, false otherwise
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() Implements org. Doc from org. Shut down this context.
| |
| supportsNullCreation | back to summary |
|---|---|
| public boolean supportsNullCreation() Implements org. Doc from org. Returns true if the findOrCreate method can return null
| |