Class DefaultBatchArtifactFactory
- java.lang.Object
-
- org.apache.batchee.container.services.factory.DefaultBatchArtifactFactory
-
- All Implemented Interfaces:
XMLStreamConstants
,BatchArtifactFactory
,BatchService
- Direct Known Subclasses:
CDIBatchArtifactFactory
,SpringLifecycle.SpringArtifactFactory
public class DefaultBatchArtifactFactory extends Object implements BatchArtifactFactory, XMLStreamConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
DefaultBatchArtifactFactory.ArtifactLocator
-
Nested classes/interfaces inherited from interface org.apache.batchee.spi.BatchArtifactFactory
BatchArtifactFactory.Instance
-
-
Field Summary
-
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
-
-
Constructor Summary
Constructors Constructor Description DefaultBatchArtifactFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DefaultBatchArtifactFactory.ArtifactLocator
createArtifactsLocator(ClassLoader tccl)
void
init(Properties batchConfig)
BatchArtifactFactory.Instance
load(String batchId)
protected void
populateArtifactMapFromStream(org.apache.batchee.container.services.factory.DefaultBatchArtifactFactory.ArtifactMap tempMap, InputStream is)
-
-
-
Method Detail
-
load
public BatchArtifactFactory.Instance load(String batchId)
- Specified by:
load
in interfaceBatchArtifactFactory
- Parameters:
batchId
- The value of a @ref attribute in a JSL element, e.g. 'batchlet'- Returns:
- An object instance of the artifact.
-
createArtifactsLocator
protected DefaultBatchArtifactFactory.ArtifactLocator createArtifactsLocator(ClassLoader tccl)
-
populateArtifactMapFromStream
protected void populateArtifactMapFromStream(org.apache.batchee.container.services.factory.DefaultBatchArtifactFactory.ArtifactMap tempMap, InputStream is)
-
init
public void init(Properties batchConfig) throws BatchContainerServiceException
- Specified by:
init
in interfaceBatchService
- Throws:
BatchContainerServiceException
-
-