org.slim3.container.plugin
Class TransactionPlugin

java.lang.Object
  extended by org.slim3.container.plugin.TransactionPlugin
All Implemented Interfaces:
Plugin

public class TransactionPlugin
extends Object
implements Plugin

A plugin implementation class for transaction.

Author:
higa

Field Summary
protected static boolean geronimoPresent
          Whether Geronimo is present.
protected static boolean glassfishPresent
          Whether Glassfish is present.
protected static boolean jbossPresent
          Whether JBoss is present.
protected static Log log
          The log.
protected static String USER_TRANSACTION_NAME
          The JNDI name for UserTransaction.
protected static boolean webLogicPresent
          Whether WebLogic is present.
protected static boolean webSpherePresent
          Whether WebSphere is present.
 
Constructor Summary
TransactionPlugin()
           
 
Method Summary
 void destroy()
          This method is called when an application stops.
 void initialize()
          This method is called when an application starts.
protected  void initializeForGeronimo()
          Initializes the configuration for Geronimo.
protected  void initializeForGlassfish()
          Initializes the configuration for Glassfish.
protected  void initializeForJBoss()
          Initializes the configuration for JBoss.
protected  void initializeForSlim3()
          Initializes the configuration for Slim3.
protected  void initializeForWebLogic()
          Initializes the configuration for WebLogic.
protected  void initializeForWebShere()
          Initializes the configuration for WebSphere.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_TRANSACTION_NAME

protected static final String USER_TRANSACTION_NAME
The JNDI name for UserTransaction.

See Also:
Constant Field Values

webSpherePresent

protected static boolean webSpherePresent
Whether WebSphere is present.


webLogicPresent

protected static boolean webLogicPresent
Whether WebLogic is present.


jbossPresent

protected static boolean jbossPresent
Whether JBoss is present.


glassfishPresent

protected static boolean glassfishPresent
Whether Glassfish is present.


geronimoPresent

protected static boolean geronimoPresent
Whether Geronimo is present.


log

protected static Log log
The log.

Constructor Detail

TransactionPlugin

public TransactionPlugin()
Method Detail

initialize

public void initialize()
                throws Exception
Description copied from interface: Plugin
This method is called when an application starts.

Specified by:
initialize in interface Plugin
Throws:
Exception - if an exception is encountered

destroy

public void destroy()
             throws Exception
Description copied from interface: Plugin
This method is called when an application stops.

Specified by:
destroy in interface Plugin
Throws:
Exception - if an exception is encountered

initializeForWebShere

protected void initializeForWebShere()
                              throws Exception
Initializes the configuration for WebSphere.

Throws:
Exception - if an exception is encountered

initializeForWebLogic

protected void initializeForWebLogic()
                              throws Exception
Initializes the configuration for WebLogic.

Throws:
Exception - if an exception is encountered

initializeForJBoss

protected void initializeForJBoss()
                           throws Exception
Initializes the configuration for JBoss.

Throws:
Exception - if an exception is encountered

initializeForGlassfish

protected void initializeForGlassfish()
                               throws Exception
Initializes the configuration for Glassfish.

Throws:
Exception - if an exception is encountered

initializeForGeronimo

protected void initializeForGeronimo()
                              throws Exception
Initializes the configuration for Geronimo.

Throws:
Exception - if an exception is encountered

initializeForSlim3

protected void initializeForSlim3()
                           throws Exception
Initializes the configuration for Slim3.

Throws:
Exception - if an exception is encountered


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.