Stilts 0.1.0-SNAPSHOT

org.projectodd.stilts.stomplet.helpers
Class AbstractStomplet

java.lang.Object
  extended by org.projectodd.stilts.stomplet.helpers.AbstractStomplet
All Implemented Interfaces:
Stomplet
Direct Known Subclasses:
DefaultStomplet, SimpleSubscribableStomplet

public abstract class AbstractStomplet
extends Object
implements Stomplet


Constructor Summary
AbstractStomplet()
           
 
Method Summary
 void destroy()
          Clean up any resources allocated by the stomplet before removing it from the container.
 StompletConfig getStompletConfig()
           
 void initialize()
           
 void initialize(StompletConfig config)
          Initialize the Stomplet in its container environment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.projectodd.stilts.stomplet.Stomplet
onMessage, onSubscribe, onUnsubscribe
 

Constructor Detail

AbstractStomplet

public AbstractStomplet()
Method Detail

initialize

public void initialize(StompletConfig config)
                throws StompException
Description copied from interface: Stomplet
Initialize the Stomplet in its container environment

Specified by:
initialize in interface Stomplet
Parameters:
config - The configuration for the stomplet.
Throws:
StompException - If an error occurs during initialization.

initialize

public void initialize()
                throws StompException
Throws:
StompException

destroy

public void destroy()
             throws StompException
Description copied from interface: Stomplet
Clean up any resources allocated by the stomplet before removing it from the container.

Specified by:
destroy in interface Stomplet
Throws:
StompException - If an error occurs during destruction.

getStompletConfig

public StompletConfig getStompletConfig()

Stilts 0.1.0-SNAPSHOT

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.