Package com.adobe.idp.dsc.registry.component
Interfacepublic 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



Public Methods
 MethodDefined by
  
void clearCache()
Clears any caching of components.
ComponentRegistry
  
void forceUninstall(Component aComponent)
Forces the uninstall of a component, calling its Bootstrap interface and removing it from the container.
ComponentRegistry
  
Component getComponent(String aComponentId, String aVersion)
Retrieves the specified version of a component or throws a com.adobe.idp.dsc.registry.ComponentNotFoundException if it does not exist.
ComponentRegistry
  
Retrieves a list of all the components installed in the container.
ComponentRegistry
  
List getComponents(String aComponentId)
Retrieves all versions with the specified component identifier.
ComponentRegistry
  
Component install(Document componentArchiveDocument)
Installs a component, calling its Bootstrap interface and leaving the component in a STOPPED state.
ComponentRegistry
  
Component install(byte[] componentArchiveByteArray)
Installs a component, calling its Bootstrap interface and leaving the component in a STOPPED state.
ComponentRegistry
  
Modifies a component with the specified component information.
ComponentRegistry
  
Starts a component, calling its LifeCycle interface and leaving the component in a RUNNING state.
ComponentRegistry
  
Component stop(Component aComponent)
Stops a component, calling its LifeCycle interface and leaving the component in a STOPPED state.
ComponentRegistry
  
void uninstall(Component aComponent)
Uninstalls a component, calling its Bootstrap interface and removing it from the container.
ComponentRegistry
Public Constants
 ConstantDefined by
  SERVICE_ID
[static]
ComponentRegistry
Method Detail
clearCache()
public void clearCache()

Clears any caching of components.

forceUninstall() 
public void forceUninstall(Component aComponent)

Forces the uninstall of a component, calling its Bootstrap interface and removing it from the container.

Parameters

aComponent — The component to uninstall.


Throws
RegistryException
getComponent() 
public Component getComponent(String aComponentId, String aVersion)

Retrieves the specified version of a component or throws a com.adobe.idp.dsc.registry.ComponentNotFoundException if it does not exist.

Parameters

aComponentId — The identifier of the component to return.
 
aVersion — The version number of the component to return.

Returns
The specified component.

Throws
com.adobe.idp.dsc.registry.ComponentNotFoundException
getComponents() 
public List getComponents()

Retrieves a list of all the components installed in the container.

Returns
A list of all the components installed in the container.
getComponents() 
public List getComponents(String aComponentId)

Retrieves all versions with the specified component identifier.

Parameters

aComponentId — The component identifier.

Returns
A list of all the components matching the specified component identifier.
install() 
public Component install(Document componentArchiveDocument)

Installs a component, calling its Bootstrap interface and leaving the component in a STOPPED state.

Parameters

componentArchiveDocument — A valid com.adobe.idp.Document representing the bits of the underlying component jar.

Returns
The component that was installed.

Throws
RegistryException
install() 
public Component install(byte[] componentArchiveByteArray)

Installs a component, calling its Bootstrap interface and leaving the component in a STOPPED state.

Parameters

componentArchiveByteArray — A byte array representing the bits of the underlying component jar.

Returns
The component that was installed.

Throws
RegistryException
modify() 
public Component modify(ModifyComponentInfo aInfo)

Modifies a component with the specified component information.

Parameters

aInfo — The component information with which to modify the component.

Returns
The modified component.

Throws
RegistryException
start() 
public Component start(Component aComponent)

Starts a component, calling its LifeCycle interface and leaving the component in a RUNNING state.

Parameters

aComponent — The component to start.

Returns
component The started component.

Throws
RegistryException
stop() 
public Component stop(Component aComponent)

Stops a component, calling its LifeCycle interface and leaving the component in a STOPPED state.

Parameters

aComponent — The component to stop.

Returns
The stopped component.

Throws
RegistryException
uninstall() 
public void uninstall(Component aComponent)

Uninstalls a component, calling its Bootstrap interface and removing it from the container.

Parameters

aComponent — The component to uninstall.


Throws
RegistryException
Constant Detail
SERVICE_IDConstant
public static final SERVICE_ID




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/javadoc/com/adobe/idp/dsc/registry/component/ComponentRegistry.html