|
|||||||||||
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 javax.management.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. |
javax.management.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 javax.management.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 AbstractEntry
IOException
ClassNotFoundException
public Library[] getLibraries()
RegistryComponent
getLibraries
in interface RegistryComponent
public Unit[] getUnits()
RegistryComponent
getUnits
in interface RegistryComponent
public void addUnit(Unit unit)
addUnit
in interface RegistryComponent
public void removeUnit(Unit unit)
removeUnit
in interface RegistryComponent
public javax.management.ObjectName getObjectName()
RegistryComponent
getObjectName
in interface RegistryComponent
protected void checkDescriptor() throws RegistryException
checkDescriptor
in class AbstractEntry
RegistryException
protected void createComponent() throws RegistryException
RegistryException
public void install() throws RegistryException
RegistryComponent
install
in interface RegistryComponent
RegistryException
protected abstract void doInstall() throws Exception
Exception
public final void restoreState() throws RegistryException
restoreState
in interface RegistryComponent
RegistryException
protected abstract void doRestoreState() throws Exception
Exception
public void saveAndShutdown() throws RegistryException
saveAndShutdown
in interface RegistryComponent
RegistryException
public final void start() throws RegistryException
RegistryComponent
start
in interface RegistryComponent
RegistryException
- if the item fails to start.protected abstract void doStart() throws Exception
Exception
public final void stop() throws RegistryException
RegistryComponent
stop
in interface RegistryComponent
RegistryException
- if the item fails to stop.protected abstract void doStop() throws Exception
Exception
public final void shutDown() throws RegistryException
RegistryComponent
shutDown
in interface RegistryComponent
RegistryException
- if the item fails to shut down.protected abstract void doShutDown() throws Exception
Exception
public void uninstall() throws RegistryException
RegistryComponent
uninstall
in interface RegistryComponent
RegistryException
public String getWorkspaceRoot()
RegistryComponent
getWorkspaceRoot
in interface RegistryComponent
public void setWorkspaceRoot(String workspaceRoot)
setWorkspaceRoot
in interface RegistryComponent
public List getClassPathElements()
getClassPathElements
in interface RegistryComponent
public void setClassPathElements(List classPathElements)
setClassPathElements
in interface RegistryComponent
public boolean isClassLoaderParentFirst()
isClassLoaderParentFirst
in interface RegistryComponent
public void setComponent(Object component)
setComponent
in interface RegistryComponent
public boolean isTransient()
isTransient
in interface RegistryComponent
public void setTransient(boolean isTransient)
setTransient
in interface RegistryComponent
public Object getComponent()
getComponent
in interface RegistryComponent
public RegistryDescriptor getDescriptor() throws RegistryException
getDescriptor
in interface RegistryComponent
RegistryException
public void setDescriptor(RegistryDescriptor descriptor) throws RegistryException
setDescriptor
in interface RegistryComponent
RegistryException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |