Package lumis.doui.source
Class SourceFactory
- java.lang.Object
-
- lumis.doui.source.SourceFactory
-
@StableMinor(version="16.0", sinceVersion="4.0") public class SourceFactory extends java.lang.Object
Create instances of Source derived classes- Since:
- 4.0.0
- Version:
- $Revision: 25809 $ $Date: 2023-07-04 15:23:22 -0300 (Tue, 04 Jul 2023) $
-
-
Constructor Summary
Constructors Constructor Description SourceFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Source<?>
createSource(java.lang.String sourceId, java.lang.String serviceInstanceId)
Creates a source.static Source
createSource(java.lang.String sourceId, ISourceContext sourceContext)
Create a source instance and return it.static Source
createSource(org.w3c.dom.Node sourceDefinitionNode, ISourceContext sourceContext)
static java.lang.Class<? extends Source>
getSourceClass(org.w3c.dom.Node sourceDefinitionNode, ITransaction transaction)
-
-
-
Method Detail
-
getSourceClass
public static java.lang.Class<? extends Source> getSourceClass(org.w3c.dom.Node sourceDefinitionNode, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
createSource
public static Source createSource(org.w3c.dom.Node sourceDefinitionNode, ISourceContext sourceContext) throws PortalException
- Throws:
PortalException
-
createSource
public static Source createSource(java.lang.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(java.lang.String sourceId, java.lang.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
-
-