Package lumis.doui.source
Class SourceContext
- java.lang.Object
-
- lumis.doui.source.SourceContext
-
- All Implemented Interfaces:
ISourceContext
- Direct Known Subclasses:
SourceContextSPI
@StableMinor(version="16.1", sinceVersion="4.0") public class SourceContext extends java.lang.Object implements ISourceContext
Implementation for aISourceContext
that can be constructed from aDouiContext
or from the other values it will provide.- Since:
- 4.0.4
- Version:
- $Revision: 26157 $ $Date: 2024-01-13 11:35:03 -0300 (Sat, 13 Jan 2024) $
-
-
Constructor Summary
Constructors Constructor Description SourceContext(DouiContext douiContext)
Creates a source context that belongs 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Constructor Detail
-
SourceContext
public SourceContext(DouiContext douiContext)
Creates a source context that belongs 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 interfaceISourceContext
- 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 interfaceISourceContext
- 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 interfaceISourceContext
- Returns:
- the user session information.
-
getTransaction
public ITransaction getTransaction()
Description copied from interface:ISourceContext
Returns the transaction for persistence access.- Specified by:
getTransaction
in interfaceISourceContext
- Returns:
- the transaction for persistence access.
-
-