org.gcube.contentmanagement.viewmanager.context
Class FactoryPTContext

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

public class FactoryPTContext
extends GCUBEStatefulPortTypeContext

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()
          
 java.lang.String getNamespace()
          
 GCUBEServiceContext 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()


getNamespace

public java.lang.String getNamespace()


getServiceContext

public GCUBEServiceContext getServiceContext()


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.