@ApplicationScoped public class JmsMocksFactory extends Object
| Constructor and Description |
|---|
JmsMocksFactory() |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.Queue |
createQueue(javax.enterprise.inject.spi.InjectionPoint ip)
called by CDI on each @Inject Queue.
|
javax.jms.Topic |
createTopic(javax.enterprise.inject.spi.InjectionPoint ip)
called by CDI on each @Inject Topic.
|
javax.jms.ConnectionFactory |
getConnectionFactory()
creates the jms-connectionfactory which is injected anywhere during the tests.
|
void |
postConstruct()
initialize mockrunner to produce singleton.
|
void |
predestroy()
Handle multiple creation/destroys of cdi-containers correctly.
|
@PostConstruct public void postConstruct()
@PreDestroy public void predestroy()
@Produces public javax.jms.Queue createQueue(javax.enterprise.inject.spi.InjectionPoint ip)
ip - information about the injectionpoint can be used to analyze the annotations. - Queuename, ...@Produces public javax.jms.Topic createTopic(javax.enterprise.inject.spi.InjectionPoint ip)
ip - information about the injectionpoint can be used to analyze the annotations. - Topicname, ...@Produces
@ApplicationScoped
public javax.jms.ConnectionFactory getConnectionFactory()
throws Exception
Exception - should not occur since mockrunner uses the main memory for jms.Copyright © 2017–2018. All rights reserved.