|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ikasan.framework.messaging.jms.DefaultJndiDestinationFactory
public class DefaultJndiDestinationFactory
Default implementation of JndiDestinationFactory
Attempts to provide the Destination implied through configuration.
Allows lookup to return cached instance if exists, and may also attempt an initial lookup on start
| Constructor Summary | |
|---|---|
DefaultJndiDestinationFactory(String jndiName,
Map<String,String> environment)
Constructor |
|
DefaultJndiDestinationFactory(String jndiName,
Map<String,String> environment,
boolean lookupOnCreation)
Constructor |
|
| Method Summary | |
|---|---|
javax.jms.Destination |
getDestination(boolean allowCachedResult)
Retrieves the configured Destination if possible |
Map<?,?> |
getEnvironment()
Accessor for environment |
String |
getJndiName()
Accessor for jndiName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJndiDestinationFactory(String jndiName,
Map<String,String> environment)
jndiName - - jndiName of the desired Destinationenvironment - - environment parameters for creating the InitialContext
public DefaultJndiDestinationFactory(String jndiName,
Map<String,String> environment,
boolean lookupOnCreation)
jndiName - - jndiName of the desired Destinationenvironment - - environment parameters for creating the InitialContext| Method Detail |
|---|
public javax.jms.Destination getDestination(boolean allowCachedResult)
throws NamingException
JndiDestinationFactoryDestination if possible
getDestination in interface JndiDestinationFactoryallowCachedResult - - allows the implementation to return a previous result if one exists
Destination specified by configured jndiName and server
NamingExceptionpublic Map<?,?> getEnvironment()
getEnvironment in interface JndiDestinationFactorypublic String getJndiName()
getJndiName in interface JndiDestinationFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||