org.ow2.petals.container
Class ContainerServiceImpl

java.lang.Object
  extended by org.ow2.petals.container.ContainerServiceImpl
All Implemented Interfaces:
ContainerService

public class ContainerServiceImpl
extends java.lang.Object
implements ContainerService

This ContainerServiceImpl implementation allow to create and handle JBI containers.

Author:
Nicolas SALATGE - eBMWebSourcing

Field Summary
static java.lang.String ADMIN_ITF
          Admin interface name.
static java.lang.String CLASSLOADER_ITF
          Classloader interface name.
static java.lang.String CONFIGURATION_ITF
          Configuration interface name.
static java.lang.String CONTAINER_ITF
          Container interface name.
static java.lang.String ENDPOINT_ITF
          Endpoint interface name.
static java.lang.String ENDPOINT_PROPERTIES_ITF
          Endpoint properties finder interface name
static java.lang.String FRACTAL_CONTAINER_SERVICE_NAME
          Fractal name of the container service.
static java.lang.String JNDI_ITF
          JNDI interface name.
static java.lang.String REPOSITORY_ITF
          Repository interface name.
static java.lang.String ROUTER_ITF
          Router interface name.
static java.lang.String SYSTEMSTATE_ITF
          Systemstate interface name.
static java.lang.String TRANSACTIONMANAGER_ITF
          Transaction manager interface name.
 
Fields inherited from interface org.ow2.petals.container.ContainerService
COMPONENT_LOGGER_PREFIX, PREFIX_COMPONENT_LIFE_CYCLE_NAME, PREFIX_INSTALLER_NAME, PREFIX_SERVICE_ASSEMBLY_LIFE_CYCLE_NAME, PREFIX_SHARED_LIBRARY_LIFE_CYCLE_NAME
 
Constructor Summary
ContainerServiceImpl()
          Default container.
 
Method Summary
 org.objectweb.fractal.api.Component createComponentLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.Component componentDescription)
          Create a component life cycle from the component description of the component.
 org.objectweb.fractal.api.Component createInstaller(org.ow2.petals.jbi.descriptor.original.generated.Component componentDescription)
          Create an installer from the component description of the component.
 org.objectweb.fractal.api.Component createServiceAssemblyLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly sa)
          Create a service assembly life cycle from the component description of the component.
 org.objectweb.fractal.api.Component createSharedLibraryLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.Jbi.SharedLibrary sl)
          Create a shared library life cycle component.
 org.objectweb.fractal.api.Component getParentContainer()
          Get the parent container.
 void removeComponentLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.Component componentDescription)
          Remove a component life cycle from the component description of the component.
 void removeInstaller(java.lang.String name)
          Remove an installer from the name of the component.
 void removeServiceAssemblyLifeCycle(ServiceAssemblyLifeCycle sa)
          remove a service assembly life cycle.
 void removeSharedLibraryLifeCycle(java.lang.String slName)
          Remove a shared library life cycle component.
protected  void start()
          Initialization of the petals component.
protected  void stop()
          Stop of the petals component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FRACTAL_CONTAINER_SERVICE_NAME

public static final java.lang.String FRACTAL_CONTAINER_SERVICE_NAME
Fractal name of the container service.

See Also:
Constant Field Values

CONFIGURATION_ITF

public static final java.lang.String CONFIGURATION_ITF
Configuration interface name.

See Also:
Constant Field Values

ADMIN_ITF

public static final java.lang.String ADMIN_ITF
Admin interface name.

See Also:
Constant Field Values

CLASSLOADER_ITF

public static final java.lang.String CLASSLOADER_ITF
Classloader interface name.

See Also:
Constant Field Values

ROUTER_ITF

public static final java.lang.String ROUTER_ITF
Router interface name.

See Also:
Constant Field Values

REPOSITORY_ITF

public static final java.lang.String REPOSITORY_ITF
Repository interface name.

See Also:
Constant Field Values

ENDPOINT_ITF

public static final java.lang.String ENDPOINT_ITF
Endpoint interface name.

See Also:
Constant Field Values

ENDPOINT_PROPERTIES_ITF

public static final java.lang.String ENDPOINT_PROPERTIES_ITF
Endpoint properties finder interface name

See Also:
Constant Field Values

JNDI_ITF

public static final java.lang.String JNDI_ITF
JNDI interface name.

See Also:
Constant Field Values

SYSTEMSTATE_ITF

public static final java.lang.String SYSTEMSTATE_ITF
Systemstate interface name.

See Also:
Constant Field Values

CONTAINER_ITF

public static final java.lang.String CONTAINER_ITF
Container interface name.

See Also:
Constant Field Values

TRANSACTIONMANAGER_ITF

public static final java.lang.String TRANSACTIONMANAGER_ITF
Transaction manager interface name.

See Also:
Constant Field Values
Constructor Detail

ContainerServiceImpl

public ContainerServiceImpl()
Default container.

Method Detail

getParentContainer

public org.objectweb.fractal.api.Component getParentContainer()
Get the parent container.

Specified by:
getParentContainer in interface ContainerService
Returns:
the parent container

createInstaller

public org.objectweb.fractal.api.Component createInstaller(org.ow2.petals.jbi.descriptor.original.generated.Component componentDescription)
                                                    throws org.ow2.petals.kernel.api.server.PetalsException
Create an installer from the component description of the component.

Specified by:
createInstaller in interface ContainerService
Parameters:
componentDescription - the component description of the component
Returns:
the fractal component of the installer
Throws:
org.ow2.petals.kernel.api.server.PetalsException - : impossible to create the installer

createComponentLifeCycle

public org.objectweb.fractal.api.Component createComponentLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.Component componentDescription)
                                                             throws org.ow2.petals.kernel.api.server.PetalsException
Create a component life cycle from the component description of the component.

Specified by:
createComponentLifeCycle in interface ContainerService
Parameters:
componentDescription - the component description of the component
Returns:
the fractal component of the component life cycle
Throws:
org.ow2.petals.kernel.api.server.PetalsException - : impossible to create a component life cycle

removeComponentLifeCycle

public void removeComponentLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.Component componentDescription)
                              throws org.ow2.petals.kernel.api.server.PetalsException
Remove a component life cycle from the component description of the component.

Specified by:
removeComponentLifeCycle in interface ContainerService
Parameters:
componentDescription - the component description of the component
Throws:
org.ow2.petals.kernel.api.server.PetalsException - : impossible to remove a component life cycle

removeInstaller

public void removeInstaller(java.lang.String name)
                     throws org.ow2.petals.kernel.api.server.PetalsException
Remove an installer from the name of the component.

Specified by:
removeInstaller in interface ContainerService
Parameters:
name - the name of the component
Throws:
org.ow2.petals.kernel.api.server.PetalsException - impossible to remove the installer

createServiceAssemblyLifeCycle

public org.objectweb.fractal.api.Component createServiceAssemblyLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly sa)
                                                                   throws org.ow2.petals.kernel.api.server.PetalsException
Create a service assembly life cycle from the component description of the component.

Specified by:
createServiceAssemblyLifeCycle in interface ContainerService
Parameters:
sa - the component description of the component
Returns:
the fractal component of the service assembly life cycle
Throws:
org.ow2.petals.kernel.api.server.PetalsException - impossible to create a service assembly

removeServiceAssemblyLifeCycle

public void removeServiceAssemblyLifeCycle(ServiceAssemblyLifeCycle sa)
                                    throws org.ow2.petals.kernel.api.server.PetalsException
remove a service assembly life cycle.

Specified by:
removeServiceAssemblyLifeCycle in interface ContainerService
Parameters:
sa - the servie assembly life cycle
Throws:
org.ow2.petals.kernel.api.server.PetalsException - Impossible to remove a service assembly

createSharedLibraryLifeCycle

public org.objectweb.fractal.api.Component createSharedLibraryLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.Jbi.SharedLibrary sl)
                                                                 throws org.ow2.petals.kernel.api.server.PetalsException
Create a shared library life cycle component.

Specified by:
createSharedLibraryLifeCycle in interface ContainerService
Parameters:
sl - the shared library
Returns:
the fractal component of the shared library
Throws:
org.ow2.petals.kernel.api.server.PetalsException - : occurs when it is impossible to create a shared library

removeSharedLibraryLifeCycle

public void removeSharedLibraryLifeCycle(java.lang.String slName)
                                  throws org.ow2.petals.kernel.api.server.PetalsException
Remove a shared library life cycle component.

Specified by:
removeSharedLibraryLifeCycle in interface ContainerService
Parameters:
slName - the shared library name
Throws:
org.ow2.petals.kernel.api.server.PetalsException - : occurs when it is impossible to remove a shared library

start

protected void start()
              throws org.ow2.petals.kernel.api.server.PetalsException,
                     org.objectweb.fractal.api.NoSuchInterfaceException
Initialization of the petals component.

Throws:
org.ow2.petals.kernel.api.server.PetalsException - : impossible to start the component
javax.jbi.JBIException - : JBI error
org.objectweb.fractal.api.NoSuchInterfaceException - : Fractal Error
org.objectweb.fractal.adl.ADLException - : Fractal error

stop

protected void stop()
Stop of the petals component.



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