Package lumis.doui.source
Class SourceFactory
- java.lang.Object
-
- lumis.doui.source.SourceFactory
-
@StableMinor(version="14.0", sinceVersion="4.0") public class SourceFactory extends Object
Create instances of Source derived classes- Since:
- 4.0.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
-
-
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
-
-