org.ow2.petals.container.lifecycle
Interface ComponentContextCommunication

All Known Implementing Classes:
Installer

public interface ComponentContextCommunication

The ComponentContext needs to access some services such as the Router and so on. Those services are implemented by Fractal components, that may dynamically change during the runtime.

Thus, the ComponentContext can not reference directly those services. Each time the ComponentContext uses those services, it retrieves through this interface the good reference of the service. This interface is implemented by the fractal components Installer and ComponentLifeCycle.

Author:
alouis, nsalatge
See Also:
Installer, ComponentLifeCycle

Method Summary
 ServiceEndpoint getAddress()
          The address of the component, as a Consumer.
 AdminService getAdminService()
          Get the Admin service.
 EndpointRegistry getEndpointRegistry()
          Get the EndpointRegistry service.
 javax.naming.InitialContext getInitialContext()
          The Initial context for the component.
 java.lang.String getInstallationRoot()
          The installation directory of the component.
 org.ow2.petals.jbi.descriptor.original.generated.Jbi getJBIDescriptor()
          get the JBI Descriptor.
 java.util.logging.Logger getLogger()
          The Logger for the component.
 RouterService getRouterService()
          Get the Router service.
 javax.transaction.TransactionManager getTransactionManagerService()
          Get the TransactionManager service.
 java.lang.String getWorkspaceRoot()
          The working directory for the component.
 

Method Detail

getJBIDescriptor

org.ow2.petals.jbi.descriptor.original.generated.Jbi getJBIDescriptor()
get the JBI Descriptor.

Returns:
the JBI descriptor

getInstallationRoot

java.lang.String getInstallationRoot()
The installation directory of the component.

Returns:
the installation root

getWorkspaceRoot

java.lang.String getWorkspaceRoot()
The working directory for the component.

Returns:
the workspace root

getAdminService

AdminService getAdminService()
Get the Admin service.

Returns:
the admin service

getAddress

ServiceEndpoint getAddress()
The address of the component, as a Consumer.

Returns:
the consumer endpoint

getEndpointRegistry

EndpointRegistry getEndpointRegistry()
Get the EndpointRegistry service.

Returns:
the endpoint service

getLogger

java.util.logging.Logger getLogger()
The Logger for the component.

Returns:
the logger

getRouterService

RouterService getRouterService()
Get the Router service.

Returns:
the router

getInitialContext

javax.naming.InitialContext getInitialContext()
The Initial context for the component.

Returns:
the initial context

getTransactionManagerService

javax.transaction.TransactionManager getTransactionManagerService()
Get the TransactionManager service.

Returns:
the TransactionManager service


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