| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private InheritableThreadLocal |
| Access | Constructor and Description |
|---|---|
| public |
| 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 |
| LOG_THREAD_DESTRUCTION | back to summary |
|---|---|
| private static final boolean LOG_THREAD_DESTRUCTION | |
| threadMap | back to summary |
|---|---|
| private InheritableThreadLocal<InheritableThreadContext. | |
| InheritableThreadContext | back to summary |
|---|---|
| public InheritableThreadContext() | |
| 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
| |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | |
| public void | |
| public void |
| id | back to summary |
|---|---|
| private final long id | |
| instances | back to summary |
|---|---|
| private final Map<ActiveDescriptor<?>, Object> instances | |
| CleanableContext | back to summary |
|---|---|
| private CleanableContext() | |
| get | back to summary |
|---|---|
| public Object get(ActiveDescriptor<?> descriptor) | |
| has | back to summary |
|---|---|
| public boolean has(ActiveDescriptor<?> descriptor) | |
| put | back to summary |
|---|---|
| public void put(ActiveDescriptor<?> descriptor, Object value) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final InheritableThreadContext. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | |
| public void | |
| public final void |
| context | back to summary |
|---|---|
| private final InheritableThreadContext. | |
| InheritableContextThreadWrapper | back to summary |
|---|---|
| public InheritableContextThreadWrapper() | |
| get | back to summary |
|---|---|
| public Object get(ActiveDescriptor<?> descriptor) | |
| has | back to summary |
|---|---|
| public boolean has(ActiveDescriptor<?> descriptor) | |
| put | back to summary |
|---|---|
| public void put(ActiveDescriptor<?> descriptor, Object value) | |
| registerStopEvent | back to summary |
|---|---|
| public final void registerStopEvent() | |