T
- The underlying type of the component.public interface ServiceableComponent<T>
public class AttributeResolver extends AbstractServiceableComponent implements
AttributeResolver, ServiceableComponent.
AbstractServiceableComponent will do all the work around reload and synchronization.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 unpin call
is made.
This method is typically only used during intialization of the component. Every call to pinComponent() must be matched by a call to unpinComponent() . |
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
pinComponent() . |
@Nonnull T getComponent()
void pinComponent()
pinComponent()
must be matched by a call to unpinComponent()
.void unpinComponent()
pinComponent()
.void unloadComponent()
Copyright © 1999–2017. All rights reserved.