Package org.glassfish.jms.injection
Class InjectableJMSContext
- java.lang.Object
-
- org.glassfish.jms.injection.ForwardingJMSContext
-
- org.glassfish.jms.injection.InjectableJMSContext
-
- All Implemented Interfaces:
jakarta.jms.JMSContext
,Serializable
,AutoCloseable
public class InjectableJMSContext extends ForwardingJMSContext implements Serializable
This bean is the JMSContext wrapper which user gets by injection. It can read metadata of injection point for it is dependent scoped. It delegates all business methods of JMSContext interface to the JMSContext API via request scopd JMSContextManager bean.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
JMS_INJECTION_LOGGER
-
Constructor Summary
Constructors Constructor Description InjectableJMSContext(jakarta.enterprise.inject.spi.InjectionPoint ip, RequestedJMSContextManager rm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
protected jakarta.jms.JMSContext
delegate()
String
toString()
-
Methods inherited from class org.glassfish.jms.injection.ForwardingJMSContext
acknowledge, close, commit, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createContext, createDurableConsumer, createDurableConsumer, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createSharedConsumer, createSharedConsumer, createSharedDurableConsumer, createSharedDurableConsumer, createStreamMessage, createTemporaryQueue, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, getAutoStart, getClientID, getExceptionListener, getMetaData, getSessionMode, getTransacted, recover, rollback, setAutoStart, setClientID, setExceptionListener, start, stop, unsubscribe
-
-
-
-
Field Detail
-
JMS_INJECTION_LOGGER
public static final String JMS_INJECTION_LOGGER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InjectableJMSContext
@Inject public InjectableJMSContext(jakarta.enterprise.inject.spi.InjectionPoint ip, RequestedJMSContextManager rm)
-
-
Method Detail
-
delegate
protected jakarta.jms.JMSContext delegate()
- Specified by:
delegate
in classForwardingJMSContext
-
cleanup
@PreDestroy public void cleanup()
-
-