org.ow2.petals.microkernel.api.container
Interface SharedLibraryLifeCycle


public interface SharedLibraryLifeCycle

The LifeCycle interface of the shared library.

Author:
Nicolas SALATGE - EBM WebSourcing

Field Summary
static String COMPONENT_LOGGER_NAME
           
 
Method Summary
 List<String> getRegisteredComponents()
          get the list of the registered components.
 String getState()
          Get the state
 void init(org.ow2.petals.jbi.descriptor.original.generated.Jbi.SharedLibrary sl, URL[] baseUrls, boolean useParentFirst)
          Initialization of sharedLibraryLifeCycle.
 boolean isLoaded()
          Test the installation flag.
 void loadSharedLibrary()
          Install the jbi shared library.
 void registerComponent(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(String componentName)
          Unregister a component if it is referenced by this Shared Library.
 

Field Detail

COMPONENT_LOGGER_NAME

static final String COMPONENT_LOGGER_NAME
See Also:
Constant Field Values
Method Detail

init

void init(org.ow2.petals.jbi.descriptor.original.generated.Jbi.SharedLibrary sl,
          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

String getState()
Get the state

Returns:

loadSharedLibrary

void loadSharedLibrary()
                       throws org.ow2.petals.basisapi.exception.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.basisapi.exception.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(String componentName)
Register a component which uses this Shared Library.

Parameters:
componentName -

unregisterComponent

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

Parameters:
componentName -

getRegisteredComponents

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

Returns:
the list

stop

void stop()
Stop of the shared library lifecycle.



Copyright © 2005-2015 Linagora. All Rights Reserved.