org.apache.servicemix.jbi.container
Class ActivationSpec

java.lang.Object
  extended by org.apache.servicemix.jbi.container.ActivationSpec
All Implemented Interfaces:
Serializable

public class ActivationSpec
extends Object
implements Serializable

Represents the registration of a component with the JBIContainer

Version:
$Revision: 690190 $
See Also:
Serialized Form

Constructor Summary
ActivationSpec()
           
ActivationSpec(Object component)
           
ActivationSpec(String id, Object component)
           
 
Method Summary
protected  org.apache.servicemix.jbi.api.EndpointResolver createEndpointResolver()
          Lazily create a resolver from the available information
 Object getComponent()
           
 String getComponentName()
           
 String getDestinationEndpoint()
          The destination endpoint
 QName getDestinationInterface()
          The destination interface
 QName getDestinationOperation()
          The destination operation name
 org.apache.servicemix.jbi.api.EndpointResolver getDestinationResolver()
          Returns the destination resolver used to decide which destination the container should route this component to.
 QName getDestinationService()
          The destination service name
 String getDestinationUri()
           
 String getEndpoint()
          Returns the endpoint name of this component
 String getId()
          The unique component ID
 EndpointChooser getInterfaceChooser()
           
 QName getInterfaceName()
           
 PojoMarshaler getMarshaler()
           
 QName getOperation()
           
 Boolean getPersistent()
           
 QName getService()
          Returns the service of the component to register
 EndpointChooser getServiceChooser()
           
 SubscriptionSpec[] getSubscriptions()
           
 boolean isFailIfNoDestinationEndpoint()
           
 void setComponent(Object component)
           
 void setComponentName(String componentName)
           
 void setDestinationEndpoint(String destinationEndpoint)
           
 void setDestinationInterface(QName destinationInterface)
           
 void setDestinationOperation(QName destinationOperation)
           
 void setDestinationResolver(org.apache.servicemix.jbi.api.EndpointResolver destinationResolver)
          Sets the destination resolver used by the container to route requests send on the default endpoint.
 void setDestinationService(QName destinationService)
           
 void setDestinationUri(String destinationUri)
           
 void setEndpoint(String endpoint)
           
 void setFailIfNoDestinationEndpoint(boolean failIfNoDestinationEndpoint)
          Sets whether or not there should be a failure if there is no matching endpoint for the service dispatch.
 void setId(String id)
          Sets the unique component ID
 void setInterfaceChooser(EndpointChooser interfaceChooser)
           
 void setInterfaceName(QName interfaceName)
           
 void setMarshaler(PojoMarshaler marshaler)
           
 void setOperation(QName operation)
           
 void setPersistent(Boolean persistent)
          Set if message exchanges issued by the component should be persistent or not.
 void setService(QName service)
           
 void setServiceChooser(EndpointChooser serviceChooser)
           
 void setSubscriptions(SubscriptionSpec[] subscriptions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationSpec

public ActivationSpec()

ActivationSpec

public ActivationSpec(Object component)

ActivationSpec

public ActivationSpec(String id,
                      Object component)
Method Detail

getId

public String getId()
The unique component ID

Returns:
the unique ID

setId

public void setId(String id)
Sets the unique component ID

Parameters:
id -

getComponentName

public String getComponentName()

setComponentName

public void setComponentName(String componentName)

getComponent

public Object getComponent()
Returns:

setComponent

public void setComponent(Object component)

getService

public QName getService()
Returns the service of the component to register


setService

public void setService(QName service)

getEndpoint

public String getEndpoint()
Returns the endpoint name of this component


setEndpoint

public void setEndpoint(String endpoint)

getInterfaceName

public QName getInterfaceName()

setInterfaceName

public void setInterfaceName(QName interfaceName)

getOperation

public QName getOperation()

setOperation

public void setOperation(QName operation)

getDestinationResolver

public org.apache.servicemix.jbi.api.EndpointResolver getDestinationResolver()
Returns the destination resolver used to decide which destination the container should route this component to.

Returns:
the destination resolver, lazily creating one if possible

setDestinationResolver

public void setDestinationResolver(org.apache.servicemix.jbi.api.EndpointResolver destinationResolver)
Sets the destination resolver used by the container to route requests send on the default endpoint.

Parameters:
destinationResolver -

getInterfaceChooser

public EndpointChooser getInterfaceChooser()

setInterfaceChooser

public void setInterfaceChooser(EndpointChooser interfaceChooser)

getServiceChooser

public EndpointChooser getServiceChooser()

setServiceChooser

public void setServiceChooser(EndpointChooser serviceChooser)

getDestinationService

public QName getDestinationService()
The destination service name


setDestinationService

public void setDestinationService(QName destinationService)

getDestinationInterface

public QName getDestinationInterface()
The destination interface


setDestinationInterface

public void setDestinationInterface(QName destinationInterface)

getDestinationOperation

public QName getDestinationOperation()
The destination operation name


setDestinationOperation

public void setDestinationOperation(QName destinationOperation)

getDestinationEndpoint

public String getDestinationEndpoint()
The destination endpoint


setDestinationEndpoint

public void setDestinationEndpoint(String destinationEndpoint)

getMarshaler

public PojoMarshaler getMarshaler()

setMarshaler

public void setMarshaler(PojoMarshaler marshaler)

getSubscriptions

public SubscriptionSpec[] getSubscriptions()

setSubscriptions

public void setSubscriptions(SubscriptionSpec[] subscriptions)

isFailIfNoDestinationEndpoint

public boolean isFailIfNoDestinationEndpoint()

setFailIfNoDestinationEndpoint

public void setFailIfNoDestinationEndpoint(boolean failIfNoDestinationEndpoint)
Sets whether or not there should be a failure if there is no matching endpoint for the service dispatch. It may be in a pure publish/subscribe model you want all available subscribes to receive the message but do not mind if there is not a single destination endpoint that can be found.

Parameters:
failIfNoDestinationEndpoint -

createEndpointResolver

protected org.apache.servicemix.jbi.api.EndpointResolver createEndpointResolver()
Lazily create a resolver from the available information


getPersistent

public Boolean getPersistent()

setPersistent

public void setPersistent(Boolean persistent)
Set if message exchanges issued by the component should be persistent or not. This value will override the default one given on the JBIContainer.persistent attribute.

Parameters:
persistent - the new value to set

getDestinationUri

public String getDestinationUri()
Returns:
the destinationUri

setDestinationUri

public void setDestinationUri(String destinationUri)
Parameters:
destinationUri - the destinationUri to set


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.