org.sca4j.binding.jms.runtime.lookup.destination
Class IfNotExistDestinationStrategy
java.lang.Object
org.sca4j.binding.jms.runtime.lookup.destination.IfNotExistDestinationStrategy
- All Implemented Interfaces:
- DestinationStrategy
public class IfNotExistDestinationStrategy
- extends java.lang.Object
- implements DestinationStrategy
The destination is looked up, if not found it is created.
|
Method Summary |
javax.jms.Destination |
getDestination(DestinationDefinition definition,
javax.jms.ConnectionFactory cf,
java.util.Hashtable<java.lang.String,java.lang.String> env,
java.lang.ClassLoader classLoader)
Gets the destination based on SCA JMS binding rules. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IfNotExistDestinationStrategy
public IfNotExistDestinationStrategy()
getDestination
public javax.jms.Destination getDestination(DestinationDefinition definition,
javax.jms.ConnectionFactory cf,
java.util.Hashtable<java.lang.String,java.lang.String> env,
java.lang.ClassLoader classLoader)
- Description copied from interface:
DestinationStrategy
- Gets the destination based on SCA JMS binding rules.
- Specified by:
getDestination in interface DestinationStrategy
- Parameters:
definition - Destination definition.cf - Connection factory.env - JNDI environment.
- Returns:
- Lokked up or created destination.
- See Also:
org.sca4j.binding.jms.runtime.lookup.destination.DestinationStrategy#getDestination(org.sca4j.binding.jms.common.DestinationDefinition,
javax.jms.ConnectionFactory, java.util.Hashtable)
Copyright © 2008-2010 Service Symphony. All Rights Reserved.