Package org.frankframework.jndi
Class JmsConnectionFactoryFactory
java.lang.Object
org.frankframework.jdbc.datasource.ObjectFactory<jakarta.jms.ConnectionFactory,jakarta.jms.ConnectionFactory>
org.frankframework.jndi.JmsConnectionFactoryFactory
- All Implemented Interfaces:
IConnectionFactoryFactory
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
NarayanaConnectionFactoryFactory
public class JmsConnectionFactoryFactory
extends ObjectFactory<jakarta.jms.ConnectionFactory,jakarta.jms.ConnectionFactory>
implements IConnectionFactoryFactory
A factory for creating JMS ConnectionFactory objects.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.frankframework.jdbc.datasource.ObjectFactory
ObjectFactory.ObjectInfo
-
Field Summary
Fields inherited from class org.frankframework.jdbc.datasource.ObjectFactory
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final jakarta.jms.ConnectionFactory
Allow implementing classes to augment the looked up object class 'O'.protected jakarta.jms.ConnectionFactory
augmentConnectionFactory
(jakarta.jms.ConnectionFactory cf, String objectName) Allow implementing classes to augment the ConnectionFactory.jakarta.jms.ConnectionFactory
getConnectionFactory
(String connectionFactoryName, Properties environment) Lookup a JMSConnectionFactory
by name, with optional JNDI environment or other additional properties to be used for the lookup of the datasource.Return all known/registered ConnectionFactoriesprotected ObjectFactory.ObjectInfo
toObjectInfo
(String name) Mapping fromto a information object, used for logging and console actions. Methods inherited from class org.frankframework.jdbc.datasource.ObjectFactory
add, afterPropertiesSet, destroy, destroyObject, get, getObjectInfo, getObjectNames, postDestroy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.frankframework.jms.IConnectionFactoryFactory
getConnectionFactory
-
Constructor Details
-
JmsConnectionFactoryFactory
public JmsConnectionFactoryFactory()
-
-
Method Details
-
augmentConnectionFactory
@Nonnull protected jakarta.jms.ConnectionFactory augmentConnectionFactory(@Nonnull jakarta.jms.ConnectionFactory cf, @Nonnull String objectName) Allow implementing classes to augment the ConnectionFactory. Seeaugment(ConnectionFactory, String)
. -
augment
@Nonnull protected final jakarta.jms.ConnectionFactory augment(@Nonnull jakarta.jms.ConnectionFactory connectionFactory, @Nonnull String objectName) Description copied from class:ObjectFactory
Allow implementing classes to augment the looked up object class 'O'. Allows the originally created object to be mutated to another object. Useful to generate an object from a filled DTO.- Overrides:
augment
in classObjectFactory<jakarta.jms.ConnectionFactory,
jakarta.jms.ConnectionFactory>
-
getConnectionFactory
@Nonnull public jakarta.jms.ConnectionFactory getConnectionFactory(@Nonnull String connectionFactoryName, @Nullable Properties environment) Description copied from interface:IConnectionFactoryFactory
Lookup a JMSConnectionFactory
by name, with optional JNDI environment or other additional properties to be used for the lookup of the datasource.- Specified by:
getConnectionFactory
in interfaceIConnectionFactoryFactory
- See Also:
-
getConnectionFactoryNames
Description copied from interface:IConnectionFactoryFactory
Return all known/registered ConnectionFactories- Specified by:
getConnectionFactoryNames
in interfaceIConnectionFactoryFactory
-
toObjectInfo
Description copied from class:ObjectFactory
Mapping fromto a information object, used for logging and console actions. - Overrides:
toObjectInfo
in classObjectFactory<jakarta.jms.ConnectionFactory,
jakarta.jms.ConnectionFactory>
-