org.mule.registry.impl
Class AbstractLibrary

java.lang.Object
  extended byorg.mule.registry.impl.AbstractEntry
      extended byorg.mule.registry.impl.AbstractLibrary
All Implemented Interfaces:
Entry, Library, Serializable

public abstract class AbstractLibrary
extends AbstractEntry
implements Library

See Also:
Serialized Form

Field Summary
protected  List classPathElements
           
protected  List components
           
protected  RegistryDescriptor descriptor
           
protected  boolean isClassLoaderParentFirst
           
 
Fields inherited from class org.mule.registry.impl.AbstractEntry
currentState, installRoot, name, registry, stateAtShutdown
 
Fields inherited from interface org.mule.registry.Entry
INITIALIZED, RUNNING, SHUTDOWN, STOPPED, UNKNOWN
 
Constructor Summary
protected AbstractLibrary(Registry registry)
           
 
Method Summary
 void addComponent(RegistryComponent component)
           
protected  void checkDescriptor()
           
protected abstract  void doInstall()
           
protected abstract  void doUninstall()
           
 List getClassPathElements()
           
 RegistryComponent[] getComponents()
           
 void install()
           
 boolean isClassLoaderParentFirst()
           
 void removeComponent(RegistryComponent component)
           
 void setDescriptor(RegistryDescriptor descriptor)
           
 void uninstall()
           
 
Methods inherited from class org.mule.registry.impl.AbstractEntry
getCurrentState, getInstallRoot, getName, getRegistry, getStateAtShutdown, readObject, 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.Library
getDescriptor
 
Methods inherited from interface org.mule.registry.Entry
getCurrentState, getInstallRoot, getName, getStateAtShutdown, setCurrentState, setInstallRoot, setName, setStateAtShutdown
 

Field Detail

components

protected List components

classPathElements

protected List classPathElements

isClassLoaderParentFirst

protected boolean isClassLoaderParentFirst

descriptor

protected RegistryDescriptor descriptor
Constructor Detail

AbstractLibrary

protected AbstractLibrary(Registry registry)
Method Detail

getComponents

public RegistryComponent[] getComponents()
Specified by:
getComponents in interface Library

addComponent

public void addComponent(RegistryComponent component)
Specified by:
addComponent in interface Library

removeComponent

public void removeComponent(RegistryComponent component)
Specified by:
removeComponent in interface Library

checkDescriptor

protected void checkDescriptor()
                        throws RegistryException
Overrides:
checkDescriptor in class AbstractEntry
Throws:
RegistryException

install

public void install()
             throws RegistryException
Specified by:
install in interface Library
Throws:
RegistryException

uninstall

public void uninstall()
               throws RegistryException
Specified by:
uninstall in interface Library
Throws:
RegistryException

getClassPathElements

public List getClassPathElements()
Specified by:
getClassPathElements in interface Library

isClassLoaderParentFirst

public boolean isClassLoaderParentFirst()
Specified by:
isClassLoaderParentFirst in interface Library

setDescriptor

public void setDescriptor(RegistryDescriptor descriptor)

doInstall

protected abstract void doInstall()
                           throws Exception
Throws:
Exception

doUninstall

protected abstract void doUninstall()
                             throws Exception
Throws:
Exception


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.