| Modifier and Type | Field and Description |
|---|---|
| private final HashMap | |
| private final HashMap | |
| private final ServiceLocator | |
| private final ReentrantLock | |
| private final Condition | |
| private final Filter |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this service has been createdThe descriptor to find 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 |
| private void | destroyOne(ActiveDescriptor<?>
The descriptor to destroy descriptor, List<ImmediateErrorHandler> The handlers for exceptions (if null will get from service locator) errorHandlers)Destroys a single descriptor |
| public void | |
| public <U> U | Returns: The serviceThe descriptor to create activeDescriptor, ServiceHandle<?> The root handle root)Implements org. Creates a contextual instance of this ActiveDescriptor by calling its create method if there is no other matching contextual instance. |
| private List | |
| public Class | getScope()
Implements org. The scope for which this is the context |
| public Filter | |
| 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 |
| creating | back to summary |
|---|---|
| private final HashMap<ActiveDescriptor<?>, Long> creating | |
| currentImmediateServices | back to summary |
|---|---|
| private final HashMap<ActiveDescriptor<?>, HandleAndService> currentImmediateServices | |
| locator | back to summary |
|---|---|
| private final ServiceLocator locator | |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| notEmpty | back to summary |
|---|---|
| private final Condition notEmpty | |
| validationFilter | back to summary |
|---|---|
| private final Filter validationFilter | |
| ImmediateContext | back to summary |
|---|---|
private ImmediateContext(ServiceLocator locator)
| |
| 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
| |
| destroyOne | back to summary |
|---|---|
| private void destroyOne(ActiveDescriptor<?> descriptor, List<ImmediateErrorHandler> errorHandlers) Destroys a single descriptor
| |
| doWork | back to summary |
|---|---|
| public void doWork() | |
| 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
| |
| getImmediateServices | back to summary |
|---|---|
| private List | |
| getScope | back to summary |
|---|---|
| public Class Implements org. Doc from org. The scope for which this is the context
| |
| getValidationFilter | back to summary |
|---|---|
| public Filter getValidationFilter() | |
| 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. For when the server shuts down
| |
| supportsNullCreation | back to summary |
|---|---|
| public boolean supportsNullCreation() Implements org. Doc from org. Returns true if the findOrCreate method can return null
| |