|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpu.patterns.serviceLocator.Locator
org.jpu.patterns.serviceLocator.TopicCFLocator
Subclass of Locator
specialized for TopicConnectionFactory
's.
See that class' documentation for more information.
Nested Class Summary |
Nested classes inherited from class org.jpu.patterns.serviceLocator.Locator |
Locator.DefaultIdentifierParser, Locator.DefaultLookupStrategy, Locator.DefaultNarrowStrategy, Locator.NullCache |
Nested classes inherited from class org.jpu.patterns.serviceLocator.ILocator |
ILocator.ICache, ILocator.IIdentifierParser, ILocator.ILookupStrategy, ILocator.INarrowStrategy |
Constructor Summary | |
TopicCFLocator()
|
Method Summary | |
java.lang.Class |
getDefaultCast()
By default returns null , but subclasses can override to
return the Class that should be passed as the second parameter
to Locator.narrow(Object,Class) if no class is passed via
the castTo attribute of the ServiceLocatorOptions
instance. |
javax.jms.TopicConnectionFactory |
getTopicCF(java.lang.String namingIdentifier)
|
javax.jms.TopicConnectionFactory |
getTopicCF(java.lang.String namingIdentifier,
java.lang.Class c)
|
javax.jms.TopicConnectionFactory |
getTopicCF(java.lang.String namingIdentifier,
ServiceLocatorOptions options)
|
Methods inherited from class org.jpu.patterns.serviceLocator.Locator |
clearCache, getCache, getLookupStrategy, getNarrowStrategy, getObject, getObject, getObject, lookup, narrow, narrow, newCache, newIdentifier, newLookupStrategy, newNarrowStrategy, removeFromCache, setCache, setLookupStrategy, setNarrowStrategy |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jpu.patterns.serviceLocator.ILocator |
clearCache, getCache, getLookupStrategy, getNarrowStrategy, getObject, getObject, getObject, narrow, narrow, newCache, newLookupStrategy, newNarrowStrategy, removeFromCache, setCache, setLookupStrategy, setNarrowStrategy |
Constructor Detail |
public TopicCFLocator()
Method Detail |
public java.lang.Class getDefaultCast()
ILocator
null
, but subclasses can override to
return the Class
that should be passed as the second parameter
to ILocator.narrow(Object,Class)
if no class is passed via
the castTo
attribute of the ServiceLocatorOptions
instance. If both castTo
and the return value of this method
are null
, no cast is performed.
getDefaultCast
in interface ILocator
getDefaultCast
in class Locator
public javax.jms.TopicConnectionFactory getTopicCF(java.lang.String namingIdentifier) throws ServiceLocatorException
getTopicCF
in interface ITopicCFLocator
ServiceLocatorException
public javax.jms.TopicConnectionFactory getTopicCF(java.lang.String namingIdentifier, java.lang.Class c) throws ServiceLocatorException
getTopicCF
in interface ITopicCFLocator
ServiceLocatorException
public javax.jms.TopicConnectionFactory getTopicCF(java.lang.String namingIdentifier, ServiceLocatorOptions options) throws ServiceLocatorException
getTopicCF
in interface ITopicCFLocator
ServiceLocatorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |