|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentRegistry
A ComponentRegistry
implementation provides clients with the ability to
to query the metadata and state of a component, install and or uninstall components, and
toggle the state of a component from RUNNING to STOPPED
Field Summary | |
---|---|
static java.lang.String |
SERVICE_ID
|
Method Summary | |
---|---|
void |
clearCache()
Clears any caching of components. |
void |
forceUninstall(Component aComponent)
Forces the uninstall of a component, calling its Bootstrap interface and removing it from the container. |
Component |
getComponent(java.lang.String aComponentId,
java.lang.String aVersion)
Retrieves the specified version of a component or throws a ComponentNotFoundException
if it does not exist. |
java.util.List |
getComponents()
Retrieves a list of all the components installed in the container. |
java.util.List |
getComponents(java.lang.String aComponentId)
Retrieves all versions with the specified component identifier. |
Component |
install(byte[] componentArchiveByteArray)
Deprecated. see ComponentRegistry.install(com.adobe.idp.Document aDoc) |
Component |
install(Document componentArchiveDocument)
Installs a component, calling its Bootstrap interface and leaving the component in a STOPPED state. |
Component |
modify(ModifyComponentInfo aInfo)
Modifies a component with the specified component information. |
Component |
start(Component aComponent)
Starts a component, calling its LifeCycle interface and leaving the component in a RUNNING state. |
Component |
start(Component aComponent,
boolean aOverrideEndpointCreation)
Starts a component, calling its LifeCycle interface and leaving the component in a RUNNING state. |
Component |
stop(Component aComponent)
Stops a component, calling its LifeCycle interface and leaving the component in a STOPPED state. |
void |
uninstall(Component aComponent)
Uninstalls a component, calling its Bootstrap interface and removing it from the container. |
Field Detail |
---|
static final java.lang.String SERVICE_ID
Method Detail |
---|
java.util.List getComponents()
java.util.List getComponents(java.lang.String aComponentId)
aComponentId
- The component identifier.
Component getComponent(java.lang.String aComponentId, java.lang.String aVersion) throws ComponentNotFoundException
ComponentNotFoundException
if it does not exist.
aComponentId
- The identifier of the component to return.aVersion
- The version number of the component to return.
ComponentNotFoundException
Component install(Document componentArchiveDocument) throws RegistryException
componentArchiveDocument
- A valid Document
representing the bits of the underlying component jar.
RegistryException
Component install(byte[] componentArchiveByteArray) throws RegistryException
componentArchiveByteArray
- A byte array representing the bits of the underlying component jar.
RegistryException
Component modify(ModifyComponentInfo aInfo) throws RegistryException
aInfo
- The component information with which to modify the component.
RegistryException
Component start(Component aComponent) throws RegistryException
aComponent
- The component to start.
RegistryException
Component start(Component aComponent, boolean aOverrideEndpointCreation) throws RegistryException
aComponent
- The component to start.aOverrideEndpointCreation
- specify whether to override the creation of
default endpoints for services that are started and deployed as a result of starting the component
by default endpoints are always created, passing true will override this creation
RegistryException
Component stop(Component aComponent) throws RegistryException
aComponent
- The component to stop.
RegistryException
void uninstall(Component aComponent) throws RegistryException
aComponent
- The component to uninstall.
RegistryException
void forceUninstall(Component aComponent) throws RegistryException
aComponent
- The component to uninstall.
RegistryException
void clearCache()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |