org.eclipse.swordfish.internal.core.interceptor
Class EndpointResolverInterceptor

java.lang.Object
  extended by org.eclipse.swordfish.internal.core.interceptor.EndpointResolverInterceptor
All Implemented Interfaces:
Interceptor, ServiceResolverHolder, org.springframework.beans.factory.InitializingBean

public class EndpointResolverInterceptor
extends java.lang.Object
implements Interceptor, ServiceResolverHolder, org.springframework.beans.factory.InitializingBean


Field Summary
static java.lang.String TARGETTED_TO_EXTERNAL_ENDPOINT_ME_PROPERTY
           
 
Fields inherited from interface org.eclipse.swordfish.core.Interceptor
TYPE_PROPERTY
 
Constructor Summary
EndpointResolverInterceptor()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.apache.servicemix.jbi.runtime.ComponentRegistry getComponentRegistry()
           
 java.lang.String getId()
           
 org.apache.servicemix.nmr.api.NMR getNmr()
           
 java.util.Map<java.lang.String,?> getProperties()
          By using this method the implementation class can supply properties associated with the current interceptor e.g priority.
 ServiceResolver getServiceResolver()
           
 void process(javax.jbi.messaging.MessageExchange messageExchange)
           
 void setComponentRegistry(org.apache.servicemix.jbi.runtime.ComponentRegistry componentRegistry)
           
 void setNmr(org.apache.servicemix.nmr.api.NMR nmr)
           
 void setServiceResolver(ServiceResolver serviceResolver)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TARGETTED_TO_EXTERNAL_ENDPOINT_ME_PROPERTY

public static final java.lang.String TARGETTED_TO_EXTERNAL_ENDPOINT_ME_PROPERTY
See Also:
Constant Field Values
Constructor Detail

EndpointResolverInterceptor

public EndpointResolverInterceptor()
Method Detail

process

public void process(javax.jbi.messaging.MessageExchange messageExchange)
             throws SwordfishException
Specified by:
process in interface Interceptor
Parameters:
messageExchange - the messageExchange to be processed
Throws:
SwordfishException

getNmr

public org.apache.servicemix.nmr.api.NMR getNmr()

setNmr

public void setNmr(org.apache.servicemix.nmr.api.NMR nmr)

getComponentRegistry

public org.apache.servicemix.jbi.runtime.ComponentRegistry getComponentRegistry()

setComponentRegistry

public void setComponentRegistry(org.apache.servicemix.jbi.runtime.ComponentRegistry componentRegistry)

getServiceResolver

public ServiceResolver getServiceResolver()
Specified by:
getServiceResolver in interface ServiceResolverHolder

setServiceResolver

public void setServiceResolver(ServiceResolver serviceResolver)
Specified by:
setServiceResolver in interface ServiceResolverHolder

getProperties

public java.util.Map<java.lang.String,?> getProperties()
Description copied from interface: Interceptor
By using this method the implementation class can supply properties associated with the current interceptor e.g priority. These properties are merged with the properties provided at OSGI service registration and via Swordfish configuration. Details see at FilterStrategy#filter(java.util.List, ReadOnlyRegistry, java.util.List) and SortingStrategy#sort(java.util.List, ReadOnlyRegistry, java.util.List).

Specified by:
getProperties in interface Interceptor
Returns:
Properties in a Map of String keys and arbitrary values.

getId

public java.lang.String getId()

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception