org.ow2.petals.container.lifecycle
Interface SharedLibraryLifeCycle

All Known Implementing Classes:
SharedLibraryLifeCycleImpl

public interface SharedLibraryLifeCycle

The LifeCycle interface of the shared library.

Author:
Nicolas SALATGE - EBM WebSourcing

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 sl, java.net.URL[] baseUrls, 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.
 

Method Detail

init

void init(org.ow2.petals.jbi.descriptor.original.generated.Jbi.SharedLibrary sl,
          java.net.URL[] baseUrls,
          boolean useParentFirst)
Initialization of sharedLibraryLifeCycle.

Parameters:
sl - the shared library
baseUrls - the base urls
useParentFirst - use parent first

isLoaded

boolean isLoaded()
Test the installation flag.

Returns:
true if the shared library is already installed

getState

java.lang.String getState()
Get the state

Returns:

loadSharedLibrary

void loadSharedLibrary()
                       throws org.ow2.petals.kernel.api.server.PetalsException
Install the jbi shared library. Call the Bootstrap onInstall() and cleanup() methods, register the shared library object, and return its jmxName.

Throws:
org.ow2.petals.kernel.api.server.PetalsException - the component is already installed

unLoadSharedLibrary

void unLoadSharedLibrary()
Uninstall the jbi shared library. Call the Bootstrap onUninstall() and cleanup() methods, deregister the jbiComponent object.


start

void start()
Start of the Shared Library lifecycle.


registerComponent

void registerComponent(java.lang.String componentName)
Register a component which uses this Shared Library.

Parameters:
componentName -

unregisterComponent

void unregisterComponent(java.lang.String componentName)
Unregister a component if it is referenced by this Shared Library.

Parameters:
componentName -

getRegisteredComponents

java.util.List<java.lang.String> getRegisteredComponents()
get the list of the registered components.

Returns:
the list

stop

void stop()
Stop of the shared library lifecycle.



Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.