public interface ScopedComponent extends AtomicComponent
ScopeContainer. This interface defines callbacks used by the scope container to change
the state of an implementation.| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
createInstance()
Create a new implementation instance, fully injected with all property and reference values.
|
boolean |
isEagerInit()
Returns true if component instances should be eagerly initialized.
|
void |
reinject(java.lang.Object instance)
Reinjects the instance with updated references.
|
void |
startInstance(java.lang.Object instance)
Starts a component instance.
|
void |
stopInstance(java.lang.Object instance)
Stops a component instance.
|
createSupplier, getInstance, releaseInstanceendUpdate, getContributionUri, getUri, start, startUpdate, stopboolean isEagerInit()
java.lang.Object createInstance()
throws org.fabric3.api.host.Fabric3Exception
org.fabric3.api.host.Fabric3Exception - if there was a problem instantiating the implementationvoid startInstance(java.lang.Object instance)
throws org.fabric3.api.host.Fabric3Exception
instance - the instance to startorg.fabric3.api.host.Fabric3Exception - if there is an error initializing the instancevoid stopInstance(java.lang.Object instance)
throws org.fabric3.api.host.Fabric3Exception
instance - the instance to startorg.fabric3.api.host.Fabric3Exception - if there is an error stopping the instancevoid reinject(java.lang.Object instance)
throws org.fabric3.api.host.Fabric3Exception
instance - the instanceorg.fabric3.api.host.Fabric3Exception - if there is an error reinjecting the instance