|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jbi.component.context.ComponentContextImpl
public class ComponentContextImpl
| Field Summary | |
|---|---|
protected ComponentContextCommunication |
componentContextCommunication
The component context communication (can be either an installer or a component life cycle) |
protected DeliveryChannel |
deliveryChannel
|
protected java.util.Set<javax.jbi.servicedesc.ServiceEndpoint> |
externalEndpoints
references of registered external serviceEndpoints |
protected java.util.Set<javax.jbi.servicedesc.ServiceEndpoint> |
internalEndpoints
references of registered internal serviceEndpoints |
protected javax.jbi.component.Component |
jbiComponent
|
protected org.ow2.petals.util.LoggingUtil |
logger
|
| Constructor Summary | |
|---|---|
ComponentContextImpl(ComponentContextCommunication componentContextCommunication)
Constructor of the ComponentContextImpl class |
|
| Method Summary | |
|---|---|
javax.jbi.servicedesc.ServiceEndpoint |
activateEndpoint(javax.xml.namespace.QName serviceName,
java.lang.String endpointName)
|
void |
clear()
Clear the component Context, remove objects dependent to the component life cycle scope. |
void |
deactivateEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
|
void |
deregisterAllEndpoints()
deregister all endpoints (internal and external) |
void |
deregisterExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
|
ServiceEndpoint |
getAddress()
|
javax.jbi.component.Component |
getComponent()
|
java.lang.String |
getComponentName()
|
DeliveryChannel |
getDeliveryChannel()
|
DeliveryChannel |
getDeliveryChannelImpl()
Return the actual deliveryChannel. |
javax.jbi.servicedesc.ServiceEndpoint |
getEndpoint(javax.xml.namespace.QName service,
java.lang.String name)
|
org.w3c.dom.Document |
getEndpointDescriptor(javax.jbi.servicedesc.ServiceEndpoint endpoint)
|
javax.jbi.servicedesc.ServiceEndpoint[] |
getEndpoints(javax.xml.namespace.QName interfaceName)
|
javax.jbi.servicedesc.ServiceEndpoint[] |
getEndpointsForService(javax.xml.namespace.QName serviceName)
|
javax.jbi.servicedesc.ServiceEndpoint[] |
getExternalEndpoints(javax.xml.namespace.QName interfaceName)
|
javax.jbi.servicedesc.ServiceEndpoint[] |
getExternalEndpointsForService(javax.xml.namespace.QName serviceName)
|
java.lang.String |
getInstallRoot()
|
org.ow2.petals.jbi.descriptor.original.generated.Jbi |
getJbi()
|
java.util.logging.Logger |
getLogger()
|
java.util.logging.Logger |
getLogger(java.lang.String suffix,
java.lang.String resourceBundleName)
|
javax.jbi.management.MBeanNames |
getMBeanNames()
|
javax.management.MBeanServer |
getMBeanServer()
|
javax.naming.InitialContext |
getNamingContext()
|
RouterService |
getRouter()
|
SecurityContext |
getSecurityContext()
|
java.lang.Object |
getTransactionManager()
|
java.lang.String |
getWorkspaceRoot()
|
void |
registerExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
|
javax.jbi.servicedesc.ServiceEndpoint |
resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
|
void |
setComponent(javax.jbi.component.Component component)
|
void |
setDeliveryChannel(DeliveryChannel deliveryChannel)
|
void |
setSecurityContext(SecurityContext securityContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DeliveryChannel deliveryChannel
protected java.util.Set<javax.jbi.servicedesc.ServiceEndpoint> externalEndpoints
protected java.util.Set<javax.jbi.servicedesc.ServiceEndpoint> internalEndpoints
protected javax.jbi.component.Component jbiComponent
protected final ComponentContextCommunication componentContextCommunication
protected org.ow2.petals.util.LoggingUtil logger
| Constructor Detail |
|---|
public ComponentContextImpl(ComponentContextCommunication componentContextCommunication)
fractalComponent - the fractal representation of installer
java.lang.IllegalArgumentException - Fractal Error: Impossible to get the service interface| Method Detail |
|---|
public javax.jbi.servicedesc.ServiceEndpoint activateEndpoint(javax.xml.namespace.QName serviceName,
java.lang.String endpointName)
throws javax.jbi.JBIException
activateEndpoint in interface javax.jbi.component.ComponentContextjavax.jbi.JBIExceptionpublic void clear()
public void deactivateEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
throws javax.jbi.JBIException
deactivateEndpoint in interface javax.jbi.component.ComponentContextjavax.jbi.JBIException
public void deregisterAllEndpoints()
throws javax.jbi.JBIException
javax.jbi.JBIException
public void deregisterExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
throws javax.jbi.JBIException
deregisterExternalEndpoint in interface javax.jbi.component.ComponentContextjavax.jbi.JBIExceptionpublic ServiceEndpoint getAddress()
public javax.jbi.component.Component getComponent()
public java.lang.String getComponentName()
getComponentName in interface javax.jbi.component.ComponentContext
public DeliveryChannel getDeliveryChannel()
throws javax.jbi.messaging.MessagingException
getDeliveryChannel in interface javax.jbi.component.ComponentContextjavax.jbi.messaging.MessagingExceptionpublic DeliveryChannel getDeliveryChannelImpl()
public javax.jbi.servicedesc.ServiceEndpoint getEndpoint(javax.xml.namespace.QName service,
java.lang.String name)
getEndpoint in interface javax.jbi.component.ComponentContext
public org.w3c.dom.Document getEndpointDescriptor(javax.jbi.servicedesc.ServiceEndpoint endpoint)
throws javax.jbi.JBIException
getEndpointDescriptor in interface javax.jbi.component.ComponentContextjavax.jbi.JBIExceptionpublic javax.jbi.servicedesc.ServiceEndpoint[] getEndpoints(javax.xml.namespace.QName interfaceName)
getEndpoints in interface javax.jbi.component.ComponentContextpublic javax.jbi.servicedesc.ServiceEndpoint[] getEndpointsForService(javax.xml.namespace.QName serviceName)
getEndpointsForService in interface javax.jbi.component.ComponentContextpublic javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpoints(javax.xml.namespace.QName interfaceName)
getExternalEndpoints in interface javax.jbi.component.ComponentContextpublic javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpointsForService(javax.xml.namespace.QName serviceName)
getExternalEndpointsForService in interface javax.jbi.component.ComponentContextpublic java.lang.String getInstallRoot()
getInstallRoot in interface javax.jbi.component.ComponentContextpublic org.ow2.petals.jbi.descriptor.original.generated.Jbi getJbi()
public java.util.logging.Logger getLogger()
public java.util.logging.Logger getLogger(java.lang.String suffix,
java.lang.String resourceBundleName)
throws java.util.MissingResourceException,
javax.jbi.JBIException
getLogger in interface javax.jbi.component.ComponentContextjava.util.MissingResourceException
javax.jbi.JBIExceptionpublic javax.jbi.management.MBeanNames getMBeanNames()
getMBeanNames in interface javax.jbi.component.ComponentContextpublic javax.management.MBeanServer getMBeanServer()
getMBeanServer in interface javax.jbi.component.ComponentContextpublic javax.naming.InitialContext getNamingContext()
getNamingContext in interface javax.jbi.component.ComponentContextpublic RouterService getRouter()
public SecurityContext getSecurityContext()
public java.lang.Object getTransactionManager()
getTransactionManager in interface javax.jbi.component.ComponentContextpublic java.lang.String getWorkspaceRoot()
getWorkspaceRoot in interface javax.jbi.component.ComponentContext
public void registerExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
throws javax.jbi.JBIException
registerExternalEndpoint in interface javax.jbi.component.ComponentContextjavax.jbi.JBIExceptionpublic javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
resolveEndpointReference in interface javax.jbi.component.ComponentContextpublic void setComponent(javax.jbi.component.Component component)
public void setDeliveryChannel(DeliveryChannel deliveryChannel)
public void setSecurityContext(SecurityContext securityContext)
securityContext - the securityContext to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||