org.jboss.soa.esb.smooks.resource
Class SmooksResource

java.lang.Object
  extended by org.jboss.soa.esb.smooks.resource.SmooksResource

public class SmooksResource
extends java.lang.Object

Smooks resource tied to the lifecycle.


Method Summary
static void closeSmooksResource(org.milyn.Smooks smooks)
          Close the smooks resource.
static org.milyn.Smooks createSmooksResource()
          Create a smooks instance.
static org.milyn.Smooks createSmooksResource(java.io.InputStream is)
          Create a smooks instance using the specified input stream.
static org.milyn.Smooks createSmooksResource(java.lang.String config)
          Create a smooks instance using the specified configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSmooksResource

public static org.milyn.Smooks createSmooksResource()
                                             throws LifecycleResourceException
Create a smooks instance.

Returns:
The smooks instance.
Throws:
LifecycleResourceException - For errors creating the lifecycle resource.

createSmooksResource

public static org.milyn.Smooks createSmooksResource(java.lang.String config)
                                             throws org.xml.sax.SAXException,
                                                    java.io.IOException,
                                                    LifecycleResourceException
Create a smooks instance using the specified configuration.

Parameters:
config - The configuration representing the smooks configuration.
Returns:
The smooks instance.
Throws:
org.xml.sax.SAXException - For errors parsing the smooks configuration.
java.io.IOException - For errors accessing the smooks configuration.
LifecycleResourceException - For errors creating the lifecycle resource.

createSmooksResource

public static org.milyn.Smooks createSmooksResource(java.io.InputStream is)
                                             throws org.xml.sax.SAXException,
                                                    java.io.IOException,
                                                    LifecycleResourceException
Create a smooks instance using the specified input stream.

Parameters:
is - The input stream representing the smooks configuration.
Returns:
The smooks instance.
Throws:
org.xml.sax.SAXException - For errors parsing the smooks configuration.
java.io.IOException - For errors accessing the smooks configuration.
LifecycleResourceException - For errors creating the lifecycle resource.

closeSmooksResource

public static void closeSmooksResource(org.milyn.Smooks smooks)
Close the smooks resource.

Parameters:
smooks - The smooks resource.