|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.registry.impl.AbstractEntry
org.mule.registry.impl.AbstractRegistryComponent
todo document
| Field Summary | |
protected List |
classPathElements
|
protected Object |
component
|
protected String |
componentClassName
|
protected RegistryDescriptor |
descriptor
|
protected boolean |
isClassLoaderParentFirst
|
protected boolean |
isTransient
|
protected List |
libraries
|
protected String |
name
|
protected ObjectName |
objectName
|
protected ComponentType |
type
|
protected List |
units
|
protected String |
workspaceRoot
|
| Fields inherited from class org.mule.registry.impl.AbstractEntry |
currentState, installRoot, registry, stateAtShutdown |
| Fields inherited from interface org.mule.registry.Entry |
INITIALIZED, RUNNING, SHUTDOWN, STOPPED, UNKNOWN |
| Constructor Summary | |
protected |
AbstractRegistryComponent(String name,
ComponentType type,
Registry registry)
|
| Method Summary | |
void |
addUnit(Unit unit)
|
protected void |
checkDescriptor()
|
protected void |
createComponent()
|
protected abstract void |
doInstall()
|
protected abstract void |
doRestoreState()
|
protected abstract void |
doShutDown()
|
protected abstract void |
doStart()
|
protected abstract void |
doStop()
|
List |
getClassPathElements()
|
Object |
getComponent()
Return the component implementation. |
RegistryDescriptor |
getDescriptor()
Return the descriptor for this component. |
Library[] |
getLibraries()
Retrieves the libraries that this component uses. |
ObjectName |
getObjectName()
Return the ObjectName under which the lifecycle mbean is registered. |
ComponentType |
getType()
|
Unit[] |
getUnits()
Units deployed to this component |
String |
getWorkspaceRoot()
Return the private component workspace |
void |
install()
Install this component. |
boolean |
isClassLoaderParentFirst()
|
boolean |
isTransient()
|
protected void |
readObject(ObjectInputStream in)
|
void |
removeUnit(Unit unit)
|
void |
restoreState()
|
void |
saveAndShutdown()
|
void |
setClassPathElements(List classPathElements)
|
void |
setComponent(Object component)
|
void |
setDescriptor(RegistryDescriptor descriptor)
|
void |
setTransient(boolean isTransient)
|
void |
setWorkspaceRoot(String workspaceRoot)
|
void |
shutDown()
Shut down the item. |
void |
start()
Start the item. |
void |
stop()
Stop the item. |
void |
uninstall()
Uninstall this component. |
| Methods inherited from class org.mule.registry.impl.AbstractEntry |
getCurrentState, getInstallRoot, getName, getRegistry, getStateAtShutdown, setCurrentState, setInstallRoot, setName, setRegistry, setStateAtShutdown |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mule.registry.RegistryComponent |
getRegistry, initComponent |
| Methods inherited from interface org.mule.registry.Entry |
getCurrentState, getInstallRoot, getName, getStateAtShutdown, setCurrentState, setInstallRoot, setName, setStateAtShutdown |
| Field Detail |
protected ComponentType type
protected String name
protected transient ObjectName objectName
protected List units
protected List libraries
protected String workspaceRoot
protected List classPathElements
protected String componentClassName
protected boolean isClassLoaderParentFirst
protected boolean isTransient
protected Object component
protected RegistryDescriptor descriptor
| Constructor Detail |
protected AbstractRegistryComponent(String name,
ComponentType type,
Registry registry)
| Method Detail |
public ComponentType getType()
getType in interface RegistryComponent
protected void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
readObject in class AbstractEntryIOException
ClassNotFoundExceptionpublic Library[] getLibraries()
RegistryComponent
getLibraries in interface RegistryComponentpublic Unit[] getUnits()
RegistryComponent
getUnits in interface RegistryComponentpublic void addUnit(Unit unit)
addUnit in interface RegistryComponentpublic void removeUnit(Unit unit)
removeUnit in interface RegistryComponentpublic ObjectName getObjectName()
RegistryComponent
getObjectName in interface RegistryComponent
protected void checkDescriptor()
throws RegistryException
checkDescriptor in class AbstractEntryRegistryException
protected void createComponent()
throws RegistryException
RegistryException
public void install()
throws RegistryException
RegistryComponent
install in interface RegistryComponentRegistryException
protected abstract void doInstall()
throws Exception
Exception
public final void restoreState()
throws RegistryException
restoreState in interface RegistryComponentRegistryException
protected abstract void doRestoreState()
throws Exception
Exception
public void saveAndShutdown()
throws RegistryException
saveAndShutdown in interface RegistryComponentRegistryException
public final void start()
throws RegistryException
RegistryComponent
start in interface RegistryComponentRegistryException - if the item fails to start.
protected abstract void doStart()
throws Exception
Exception
public final void stop()
throws RegistryException
RegistryComponent
stop in interface RegistryComponentRegistryException - if the item fails to stop.
protected abstract void doStop()
throws Exception
Exception
public final void shutDown()
throws RegistryException
RegistryComponent
shutDown in interface RegistryComponentRegistryException - if the item fails to shut down.
protected abstract void doShutDown()
throws Exception
Exception
public void uninstall()
throws RegistryException
RegistryComponent
uninstall in interface RegistryComponentRegistryExceptionpublic String getWorkspaceRoot()
RegistryComponent
getWorkspaceRoot in interface RegistryComponentpublic void setWorkspaceRoot(String workspaceRoot)
setWorkspaceRoot in interface RegistryComponentpublic List getClassPathElements()
getClassPathElements in interface RegistryComponentpublic void setClassPathElements(List classPathElements)
setClassPathElements in interface RegistryComponentpublic boolean isClassLoaderParentFirst()
isClassLoaderParentFirst in interface RegistryComponentpublic void setComponent(Object component)
setComponent in interface RegistryComponentpublic boolean isTransient()
isTransient in interface RegistryComponentpublic void setTransient(boolean isTransient)
setTransient in interface RegistryComponentpublic Object getComponent()
getComponent in interface RegistryComponent
public RegistryDescriptor getDescriptor()
throws RegistryException
getDescriptor in interface RegistryComponentRegistryException
public void setDescriptor(RegistryDescriptor descriptor)
throws RegistryException
setDescriptor in interface RegistryComponentRegistryException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||