org.jbpm.pvm.internal.wire.descriptor
Class HibernateConfigurationDescriptor

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

public class HibernateConfigurationDescriptor
extends AbstractDescriptor

Author:
Tom Baeyens
See Also:
Serialized Form

Nested Class Summary
static class HibernateConfigurationDescriptor.AddCfgFile
           
static class HibernateConfigurationDescriptor.AddCfgResource
           
static class HibernateConfigurationDescriptor.AddCfgUrl
           
static class HibernateConfigurationDescriptor.AddMappingClass
           
static class HibernateConfigurationDescriptor.AddMappingFile
           
static class HibernateConfigurationDescriptor.AddMappingResource
           
static class HibernateConfigurationDescriptor.AddMappingUrl
           
static class HibernateConfigurationDescriptor.SetCacheConcurrencyStrategy
           
static class HibernateConfigurationDescriptor.SetCollectionCacheConcurrencyStrategy
           
 
Field Summary
 
Fields inherited from class org.jbpm.pvm.internal.wire.descriptor.AbstractDescriptor
dbid, dbversion, init, INIT_EAGER, INIT_IMMEDIATE, INIT_LAZY, INIT_REQUIRED, name, version
 
Fields inherited from class org.jbpm.pvm.internal.util.DefaultObservable
listeners
 
Fields inherited from interface org.jbpm.pvm.internal.wire.Descriptor
EVENT_CONSTRUCTED, EVENT_CONSTRUCTING, EVENT_INITIALIZING, EVENT_REMOVE, EVENT_SET
 
Constructor Summary
HibernateConfigurationDescriptor()
           
 
Method Summary
 void addCfgFile(java.lang.String cfgFile)
           
 void addCfgResource(java.lang.String cfgResource)
           
 void addCfgUrl(java.lang.String cfgUrl)
           
 void addClassToCache(java.lang.String className, java.lang.String concurrencyStrategy)
           
 void addCollectionToCache(java.lang.String collectionName, java.lang.String concurrencyStrategy)
           
 void addMappingClass(java.lang.String mappingClassName)
           
 void addMappingFile(java.lang.String mappingFileName)
           
 void addMappingResource(java.lang.String mappingResource)
           
 void addMappingUrl(java.lang.String mappingUrl)
           
 java.lang.Object construct(WireContext wireContext)
          constructs the object.
 java.lang.String getClassName()
           
 java.lang.String getNamingStrategyClassName()
           
 PropertiesDescriptor getPropertiesDescriptor()
           
 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 setClassName(java.lang.String className)
           
 void setNamingStrategyClassName(java.lang.String namingStrategyClassName)
           
 void setPropertiesDescriptor(PropertiesDescriptor propertiesDescriptor)
           
 
Methods inherited from class org.jbpm.pvm.internal.wire.descriptor.AbstractDescriptor
getDbid, getName, isDelayable, isEagerInit, setInit, setName
 
Methods inherited from class org.jbpm.pvm.internal.util.DefaultObservable
addListener, addListener, addListener, fire, fire, getListeners, 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.pvm.internal.util.Observable
addListener, addListener, addListener, fire, fire, removeListener
 

Constructor Detail

HibernateConfigurationDescriptor

public HibernateConfigurationDescriptor()
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

addCfgResource

public void addCfgResource(java.lang.String cfgResource)

addCfgFile

public void addCfgFile(java.lang.String cfgFile)

addCfgUrl

public void addCfgUrl(java.lang.String cfgUrl)

addMappingResource

public void addMappingResource(java.lang.String mappingResource)

addMappingFile

public void addMappingFile(java.lang.String mappingFileName)

addMappingClass

public void addMappingClass(java.lang.String mappingClassName)

addMappingUrl

public void addMappingUrl(java.lang.String mappingUrl)

addClassToCache

public void addClassToCache(java.lang.String className,
                            java.lang.String concurrencyStrategy)

addCollectionToCache

public void addCollectionToCache(java.lang.String collectionName,
                                 java.lang.String concurrencyStrategy)

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String className)

getPropertiesDescriptor

public PropertiesDescriptor getPropertiesDescriptor()

setPropertiesDescriptor

public void setPropertiesDescriptor(PropertiesDescriptor propertiesDescriptor)

getNamingStrategyClassName

public java.lang.String getNamingStrategyClassName()

setNamingStrategyClassName

public void setNamingStrategyClassName(java.lang.String namingStrategyClassName)


Copyright © 2010 JBoss Community. All Rights Reserved.