com.silverpeas.mailinglist.jms
Class MockObjectFactory
java.lang.Object
com.silverpeas.mailinglist.jms.MockObjectFactory
- All Implemented Interfaces:
- ObjectFactory
public class MockObjectFactory
- extends Object
- implements ObjectFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockObjectFactory
public MockObjectFactory()
clearAll
public static void clearAll()
getQueueConnectionFactory
public static javax.jms.QueueConnectionFactory getQueueConnectionFactory()
getTopicConnectionFactory
public static javax.jms.TopicConnectionFactory getTopicConnectionFactory()
createQueue
public static javax.jms.Queue createQueue(String name)
getObjectInstance
public Object getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable environment)
throws Exception
- Specified by:
getObjectInstance
in interface ObjectFactory
- Throws:
Exception
closeQueue
public static void closeQueue(String name)
getMessages
public static List<javax.jms.TextMessage> getMessages(String name)
Copyright © 2016 Silverpeas. All Rights Reserved.