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

All Known Subinterfaces:
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:
Adrien Louis - EBM WebSourcing, Nicolas Salatge - EBM WebSourcing
See Also:
org.ow2.petals.microkernel.container.lifecycle.Installer, org.ow2.petals.microkernel.container.lifecycle.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.
 InitialContext getInitialContext()
          The Initial context for the component.
 String getInstallationRoot()
          The installation directory of the component.
 org.ow2.petals.jbi.descriptor.original.generated.Jbi getJBIDescriptor()
          Gets the JBI Descriptor.
 Logger getLogger()
          The Logger for the component.
 RouterService getRouterService()
          Get the Router service.
 TransactionManager getTransactionManagerService()
          Get the TransactionManager service.
 String getWorkspaceRoot()
          The working directory for the component.
 

Method Detail

getJBIDescriptor

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

Returns:
the JBI descriptor

getInstallationRoot

String getInstallationRoot()
The installation directory of the component.

Returns:
the installation root

getWorkspaceRoot

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

Logger getLogger()
The Logger for the component.

Returns:
the logger

getRouterService

RouterService getRouterService()
Get the Router service.

Returns:
the router

getInitialContext

InitialContext getInitialContext()
The Initial context for the component.

Returns:
the initial context

getTransactionManagerService

TransactionManager getTransactionManagerService()
Get the TransactionManager service.

Returns:
the TransactionManager service


Copyright © 2005-2015 Linagora. All Rights Reserved.