Package lumis.doui.source
Class SourceFactory
- java.lang.Object
-
- lumis.doui.source.SourceFactory
-
@StableMinor(version="14.2", sinceVersion="4.0") public class SourceFactory extends Object
Create instances of Source derived classes- Since:
- 4.0.0
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
-
-
Constructor Summary
Constructors Constructor Description SourceFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Source<?>
createSource(String sourceId, String serviceInstanceId)
Creates a source.static Source
createSource(String sourceId, ISourceContext sourceContext)
Create a source instance and return it.static Source
createSource(Node sourceDefinitionNode, ISourceContext sourceContext)
static Class<? extends Source>
getSourceClass(Node sourceDefinitionNode, ITransaction transaction)
-
-
-
Method Detail
-
getSourceClass
public static Class<? extends Source> getSourceClass(Node sourceDefinitionNode, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
createSource
public static Source createSource(Node sourceDefinitionNode, ISourceContext sourceContext) throws PortalException
- Throws:
PortalException
-
createSource
public static Source createSource(String sourceId, ISourceContext sourceContext) throws PortalException
Create a source instance and return it.- Parameters:
sourceId
- the source id.sourceContext
- the source's context.- Returns:
- the source.
- Throws:
PortalException
- Since:
- 4.0.7
-
createSource
public static Source<?> createSource(String sourceId, String serviceInstanceId) throws PortalException
Creates a source. Thecurrent transaction
andcurrent session
will be used for the source's context.- Parameters:
sourceId
- the source id.serviceInstanceId
- the source's service instance identifier.- Returns:
- the source.
- Throws:
PortalException
- Since:
- 10.4.0
-
-