com.caucho.jms.resource
Class ListenerResource.ListenerConfig

java.lang.Object
  extended by com.caucho.jms.resource.ListenerResource.ListenerConfig
Enclosing class:
ListenerResource

public static class ListenerResource.ListenerConfig
extends java.lang.Object


Constructor Summary
ListenerResource.ListenerConfig()
           
 
Method Summary
 void init()
           
 MessageListener newInstance()
          Creates a new MessageListener
 void setInit(ContainerProgram init)
          Sets the init program.
 void setType(java.lang.Class type)
          Sets the listener's type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerResource.ListenerConfig

public ListenerResource.ListenerConfig()
Method Detail

setType

public void setType(java.lang.Class type)
             throws ConfigException
Sets the listener's type.

Parameters:
type - implementation class of MessageListener
Throws:
ConfigException

setInit

public void setInit(ContainerProgram init)
Sets the init program.


init

@PostConstruct
public void init()
          throws ConfigException
Throws:
ConfigException

newInstance

public MessageListener newInstance()
                            throws java.lang.Throwable,
                                   java.lang.InstantiationException
Creates a new MessageListener

Returns:
the listener
Throws:
java.lang.Throwable
java.lang.InstantiationException