|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.container.lifecycle.SharedLibraryLifeCycleImpl
public class SharedLibraryLifeCycleImpl
The LifeCycle implementation of the shared library.
| Field Summary | |
|---|---|
static java.lang.String |
INSTALLED
state flag: the shared library is installed. |
static java.lang.String |
UNINSTALLED
state flag: the shared library is uninstalled. |
| Constructor Summary | |
|---|---|
SharedLibraryLifeCycleImpl()
The default constructor. |
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getRegisteredComponents()
get the list of the registered components. |
java.lang.String |
getState()
Get the state |
void |
init(org.ow2.petals.jbi.descriptor.original.generated.Jbi.SharedLibrary sharedLibrary,
java.net.URL[] baseUrls1,
boolean useParentFirst)
Initialization of sharedLibraryLifeCycle. |
boolean |
isLoaded()
Test the installation flag. |
void |
loadSharedLibrary()
Install the jbi shared library. |
void |
registerComponent(java.lang.String componentName)
Register a component which uses this Shared Library. |
void |
start()
Start of the shared library lifecycle. |
void |
stop()
Stop of the shared library lifecycle. |
void |
unLoadSharedLibrary()
Uninstall the jbi shared library. |
void |
unregisterComponent(java.lang.String componentName)
Unregister a component if it is referenced by this Shared Library. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String INSTALLED
public static final java.lang.String UNINSTALLED
| Constructor Detail |
|---|
public SharedLibraryLifeCycleImpl()
| Method Detail |
|---|
public void init(org.ow2.petals.jbi.descriptor.original.generated.Jbi.SharedLibrary sharedLibrary,
java.net.URL[] baseUrls1,
boolean useParentFirst)
SharedLibraryLifeCycle
init in interface SharedLibraryLifeCyclesharedLibrary - the shared librarybaseUrls1 - the base urlsuseParentFirst - use parent firstpublic boolean isLoaded()
SharedLibraryLifeCycle
isLoaded in interface SharedLibraryLifeCycle
public void loadSharedLibrary()
throws org.ow2.petals.kernel.api.server.PetalsException
SharedLibraryLifeCycle
loadSharedLibrary in interface SharedLibraryLifeCycleorg.ow2.petals.kernel.api.server.PetalsException - the component is already installedpublic void unLoadSharedLibrary()
SharedLibraryLifeCycle
unLoadSharedLibrary in interface SharedLibraryLifeCyclepublic void registerComponent(java.lang.String componentName)
SharedLibraryLifeCycle
registerComponent in interface SharedLibraryLifeCyclepublic void unregisterComponent(java.lang.String componentName)
SharedLibraryLifeCycle
unregisterComponent in interface SharedLibraryLifeCyclepublic java.util.List<java.lang.String> getRegisteredComponents()
SharedLibraryLifeCycle
getRegisteredComponents in interface SharedLibraryLifeCyclepublic java.lang.String getState()
getState in interface SharedLibraryLifeCyclepublic void start()
start in interface SharedLibraryLifeCyclepublic void stop()
stop in interface SharedLibraryLifeCycle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||