lumis.doui.source
Class SourceContext

Package class diagram package SourceContext
java.lang.Object
  extended by lumis.doui.source.SourceContext
All Implemented Interfaces:
ISourceContext

@StableMinor(version="4.1",
             sinceVersion="4.0")
public class SourceContext
extends Object
implements ISourceContext

Implementation for a ISourceContext that can be constructed from a DouiContext or from the other values it will provide.

Since:
4.0.4

Constructor Summary
SourceContext(DouiContext douiContext)
          Creates a source context that beloongs to a doui context.
SourceContext(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstanceConfig, ITransaction transaction)
          Creates a source context that does not belongs to a doui context.
 
Method Summary
 DouiContext getDouiContext()
          Returns the doui context this source context belongs to.
 ServiceInstanceConfig getServiceInstanceConfig()
          Returns the service instance of this context.
 SessionConfig getSessionConfig()
          Returns the user session information.
 ITransaction getTransaction()
          Returns the transaction for persistence access.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceContext

public SourceContext(DouiContext douiContext)
Creates a source context that beloongs to a doui context.

Parameters:
douiContext - the doui context.
Since:
4.0.4

SourceContext

public SourceContext(SessionConfig sessionConfig,
                     ServiceInstanceConfig serviceInstanceConfig,
                     ITransaction transaction)
Creates a source context that does not belongs to a doui context.

Parameters:
sessionConfig - the session config for this context.
serviceInstanceConfig - the service instance for this context.
transaction - the transaction for this context.
Since:
4.0.4
Method Detail

getDouiContext

public DouiContext getDouiContext()
Description copied from interface: ISourceContext
Returns the doui context this source context belongs to.

Specified by:
getDouiContext in interface ISourceContext
Returns:
the doui context this source context belongs to, or null if this source context does not belongs to a doui context.

getServiceInstanceConfig

public ServiceInstanceConfig getServiceInstanceConfig()
Description copied from interface: ISourceContext
Returns the service instance of this context.

Specified by:
getServiceInstanceConfig in interface ISourceContext
Returns:
the service instance of this context.

getSessionConfig

public SessionConfig getSessionConfig()
Description copied from interface: ISourceContext
Returns the user session information.

Specified by:
getSessionConfig in interface ISourceContext
Returns:
the user session information.

getTransaction

public ITransaction getTransaction()
Description copied from interface: ISourceContext
Returns the transaction for persistence access.

Specified by:
getTransaction in interface ISourceContext
Returns:
the transaction for persistence access.


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.