org.ow2.petals.container
Interface ContainerService

All Known Implementing Classes:
ContainerServiceImpl

public interface ContainerService

This ContainerService interface allow to create and handle JBI containers.

Author:
Nicolas SALATGE - eBM WebSourcing

Field Summary
static java.lang.String COMPONENT_LOGGER_PREFIX
           
static java.lang.String PREFIX_COMPONENT_LIFE_CYCLE_NAME
          Prefix of the component life cycle name.
static java.lang.String PREFIX_INSTALLER_NAME
          Prefix of the installler name.
static java.lang.String PREFIX_SERVICE_ASSEMBLY_LIFE_CYCLE_NAME
          Prefix of the service assembly life cycle name.
static java.lang.String PREFIX_SHARED_LIBRARY_LIFE_CYCLE_NAME
          Prefix of the shared library life cycle name.
 
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.
 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 container component.
 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.
 

Field Detail

COMPONENT_LOGGER_PREFIX

static final java.lang.String COMPONENT_LOGGER_PREFIX
See Also:
Constant Field Values

PREFIX_INSTALLER_NAME

static final java.lang.String PREFIX_INSTALLER_NAME
Prefix of the installler name.

See Also:
Constant Field Values

PREFIX_COMPONENT_LIFE_CYCLE_NAME

static final java.lang.String PREFIX_COMPONENT_LIFE_CYCLE_NAME
Prefix of the component life cycle name.

See Also:
Constant Field Values

PREFIX_SERVICE_ASSEMBLY_LIFE_CYCLE_NAME

static final java.lang.String PREFIX_SERVICE_ASSEMBLY_LIFE_CYCLE_NAME
Prefix of the service assembly life cycle name.

See Also:
Constant Field Values

PREFIX_SHARED_LIBRARY_LIFE_CYCLE_NAME

static final java.lang.String PREFIX_SHARED_LIBRARY_LIFE_CYCLE_NAME
Prefix of the shared library life cycle name.

See Also:
Constant Field Values
Method Detail

createInstaller

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.

Parameters:
componentDescription - the component description of the component
Returns:
the fractal component of the installer
Throws:
org.ow2.petals.kernel.api.server.PetalsException - : occurs when it is impossible to create an installer

removeInstaller

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

Parameters:
name - the name of the component
Throws:
org.ow2.petals.kernel.api.server.PetalsException - : occurs when it is impossible to remove an installer

createComponentLifeCycle

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.

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 - : occurs when it is impossible to create a component life cycle

removeComponentLifeCycle

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.

Parameters:
componentDescription - the component description of the component
Throws:
org.ow2.petals.kernel.api.server.PetalsException - : occurs when it is impossible to remove a component life cycle

getParentContainer

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

Returns:
the parent component (the fractal container)

createServiceAssemblyLifeCycle

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. It is realize from the component description of the component.

Parameters:
sa - the service assembly of the component
Returns:
the fractal component of the service assembly life cycle
Throws:
org.ow2.petals.kernel.api.server.PetalsException - : occurs when it is impossible to create a service assembly

removeServiceAssemblyLifeCycle

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

Parameters:
sa - the service assembly of the component
Throws:
org.ow2.petals.kernel.api.server.PetalsException - : occurs when it is impossible to remove a service assembly life cycle

createSharedLibraryLifeCycle

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.

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

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

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


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