|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.providers.jms.DefaultJmsTopicResolver
A default implementation of the resolver uses endpoint's resource info and Java's operator to detect JMS topics.
Field Summary | |
protected static Log |
logger
logger used by this class |
Constructor Summary | |
DefaultJmsTopicResolver(JmsConnector connector)
Create an instance of the resolver. |
Method Summary | |
protected void |
checkInvariants(Destination destination)
Perform some sanity checks, will complain in the log. |
JmsConnector |
getConnector()
Getter for property 'connector'. |
boolean |
isTopic(Destination destination)
Will use an operator. |
boolean |
isTopic(UMOImmutableEndpoint endpoint)
Will use endpoint's resource info to detect a topic, as in . |
boolean |
isTopic(UMOImmutableEndpoint endpoint,
boolean fallbackToEndpointProperties)
Use endpoint configuration to detect a topic. Additionally, specify a fallback mechanism to search in endpoint's properties in case resource info yields . In case resource info returned no endpoint properties would be consulted. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final Log logger
Constructor Detail |
public DefaultJmsTopicResolver(JmsConnector connector)
connector
- owning connectorMethod Detail |
public JmsConnector getConnector()
public boolean isTopic(UMOImmutableEndpoint endpoint)
isTopic(org.mule.umo.endpoint.UMOImmutableEndpoint, boolean)
with fallback flag set to false.
NOTE: When using topics, use the '.' (dot) symbol for subcontext separation,
as opposed to '/'. Otherwise the resource info may not get properly translated for the
topic endpoint due to the way URI's are parsed.
isTopic
in interface JmsTopicResolver
endpoint
- endpoint to test
isTopic(org.mule.umo.endpoint.UMOImmutableEndpoint, boolean)
public boolean isTopic(UMOImmutableEndpoint endpoint, boolean fallbackToEndpointProperties)
isTopic
in interface JmsTopicResolver
endpoint
- endpoint to testfallbackToEndpointProperties
- whether to check endpoint's properties if
resource info returned false
public boolean isTopic(Destination destination)
isTopic
in interface JmsTopicResolver
destination
- a jms destination to test
protected void checkInvariants(Destination destination)
destination
- destination to test
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |