org.jbpm.wire.descriptor
Class HibernateSessionDescriptor

java.lang.Object
  extended by org.jbpm.util.DefaultObservable
      extended by org.jbpm.wire.descriptor.AbstractDescriptor
          extended by org.jbpm.wire.descriptor.HibernateSessionDescriptor
All Implemented Interfaces:
java.io.Serializable, Observable, Descriptor

public class HibernateSessionDescriptor
extends AbstractDescriptor

Author:
Tom Baeyens
See Also:
Serialized Form

Nested Class Summary
static class HibernateSessionDescriptor.SessionCloser
           
 
Field Summary
protected  boolean close
           
protected  java.lang.String connectionName
           
protected  java.lang.String factoryName
           
protected  java.lang.String standardTransactionName
           
protected  boolean tx
           
protected  boolean useCurrent
           
 
Fields inherited from class org.jbpm.wire.descriptor.AbstractDescriptor
dbid, dbversion, init, INIT_EAGER, INIT_IMMEDIATE, INIT_LAZY, INIT_REQUIRED, name, version
 
Fields inherited from class org.jbpm.util.DefaultObservable
listeners
 
Fields inherited from interface org.jbpm.wire.Descriptor
EVENT_CONSTRUCTED, EVENT_CONSTRUCTING, EVENT_INITIALIZING, EVENT_REMOVE, EVENT_SET
 
Constructor Summary
HibernateSessionDescriptor()
           
 
Method Summary
 java.lang.Object construct(WireContext wireContext)
          constructs the object.
 java.lang.Class<?> getType(WireDefinition wireDefinition)
          the type of the produced object or null if that is not available
 void initialize(java.lang.Object object, WireContext wireContext)
          called by the WireContext to initialize the specified object.
 void setClose(boolean close)
           
 void setConnectionName(java.lang.String connectionName)
           
 void setFactoryName(java.lang.String factoryName)
           
 void setStandardTransactionName(java.lang.String standardTransactionName)
           
 void setTx(boolean tx)
           
 void setUseCurrent(boolean useCurrent)
           
 
Methods inherited from class org.jbpm.wire.descriptor.AbstractDescriptor
getDbid, getName, isDelayable, isEagerInit, setInit, setName
 
Methods inherited from class org.jbpm.util.DefaultObservable
addListener, addListener, addListener, fire, fire, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbpm.util.Observable
addListener, addListener, addListener, fire, fire, removeListener
 

Field Detail

factoryName

protected java.lang.String factoryName

useCurrent

protected boolean useCurrent

tx

protected boolean tx

close

protected boolean close

standardTransactionName

protected java.lang.String standardTransactionName

connectionName

protected java.lang.String connectionName
Constructor Detail

HibernateSessionDescriptor

public HibernateSessionDescriptor()
Method Detail

construct

public java.lang.Object construct(WireContext wireContext)
Description copied from interface: Descriptor
constructs the object.

Parameters:
wireContext - WireContext in which the object is created. This is also the WireContext where the object will search for other object that may be needed during the initialization phase.
Returns:
the constructed object.

initialize

public void initialize(java.lang.Object object,
                       WireContext wireContext)
Description copied from interface: Descriptor
called by the WireContext to initialize the specified object. For more information about initialization, see WireContext section lifecycle.

Specified by:
initialize in interface Descriptor
Overrides:
initialize in class AbstractDescriptor
Parameters:
object - object to initialize.
wireContext - the context in which the object will be initialized.

getType

public java.lang.Class<?> getType(WireDefinition wireDefinition)
Description copied from interface: Descriptor
the type of the produced object or null if that is not available

Specified by:
getType in interface Descriptor
Overrides:
getType in class AbstractDescriptor

setFactoryName

public void setFactoryName(java.lang.String factoryName)

setTx

public void setTx(boolean tx)

setStandardTransactionName

public void setStandardTransactionName(java.lang.String standardTransactionName)

setConnectionName

public void setConnectionName(java.lang.String connectionName)

setUseCurrent

public void setUseCurrent(boolean useCurrent)

setClose

public void setClose(boolean close)