T - The underlying type of the component.
The idea is that the attribute resolver will be
public class AttributeResolver extends AbstractServiceableComponent implements
AttributeResolver, ServiceableComponent.
AbstractServiceableComponent will do all the work around reload and synchronization.public interface ServiceableComponent<T>
| Modifier and Type | Method and Description |
|---|---|
T |
getComponent()
Extract the component that does the actual work.
|
void |
pinComponent()
This function takes a lock on the component which guarantees that it will not be disposed until the release call
is made.
Every call to pinComponent() must be matched by a call to unpinComponent()
The need to have the type converting return parameter is to get around the java typing restrictions. |
void |
unloadComponent()
This call will wait for all transient operations to complete and then
calls dispose on the components.
|
void |
unpinComponent()
This undoes the work that is done by
getComponent(). |
@Nonnull T getComponent()
void pinComponent()
pinComponent() must be matched by a call to unpinComponent()
void unpinComponent()
getComponent().void unloadComponent()
Copyright © 1999–2014. All rights reserved.