org.gcube.contentmanagement.contentmanager.context
Class FactoryPTContext

java.lang.Object
  extended by GCUBEStatefulPortTypeContext
      extended by org.gcube.contentmanagement.contentmanager.context.BasePTContext
          extended by org.gcube.contentmanagement.contentmanager.context.FactoryPTContext

public class FactoryPTContext
extends BasePTContext

Author:
Fabio Simeoni (University of Strathclyde)

Method Summary
 Factory createFactory()
          Creates the singleton Factory of the port-type.
static FactoryPTContext getContext()
          Returns a context instance.
 Factory getFactory()
          Returns the singleton Factory of the port-type..
 java.lang.String getJNDIName()
          
 
Methods inherited from class org.gcube.contentmanagement.contentmanager.context.BasePTContext
getNamespace, getServiceContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContext

public static FactoryPTContext getContext()
Returns a context instance.

Returns:
the context.

getJNDIName

public java.lang.String getJNDIName()


getFactory

public Factory getFactory()
                   throws java.lang.Exception
Returns the singleton Factory of the port-type..

Returns:
the engine.
Throws:
java.lang.Exception - if the engine could not be returned.

createFactory

public Factory createFactory()
                      throws java.lang.Exception
Creates the singleton Factory of the port-type.

Throws:
java.lang.Exception - if the engine could not be created.