Class DelegatingBatchArtifactFactoryImpl
- java.lang.Object
-
- com.ibm.jbatch.container.services.impl.DelegatingBatchArtifactFactoryImpl
-
- All Implemented Interfaces:
IBatchArtifactFactory,IBatchServiceBase,XMLStreamConstants
public class DelegatingBatchArtifactFactoryImpl extends Object implements IBatchArtifactFactory, XMLStreamConstants
-
-
Field Summary
Fields Modifier and Type Field Description protected static IBatchArtifactFactorypreferredArtifactFactory-
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 DelegatingBatchArtifactFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InputStreamgetBatchXMLStreamFromClassLoader(ClassLoader loader)voidinit(IBatchConfig batchConfig)Objectload(String batchId)protected com.ibm.jbatch.container.services.impl.DelegatingBatchArtifactFactoryImpl.ArtifactMappopulateArtifactMapFromStream(com.ibm.jbatch.container.services.impl.DelegatingBatchArtifactFactoryImpl.ArtifactMap tempMap, InputStream is)voidshutdown()
-
-
-
Field Detail
-
preferredArtifactFactory
protected static IBatchArtifactFactory preferredArtifactFactory
-
-
Method Detail
-
load
public Object load(String batchId)
- Specified by:
loadin interfaceIBatchArtifactFactory- Parameters:
batchId- The value of a @ref attribute in a JSL element, e.g. 'batchlet'- Returns:
- An object instance of the artifact.
-
getBatchXMLStreamFromClassLoader
protected InputStream getBatchXMLStreamFromClassLoader(ClassLoader loader)
-
populateArtifactMapFromStream
protected com.ibm.jbatch.container.services.impl.DelegatingBatchArtifactFactoryImpl.ArtifactMap populateArtifactMapFromStream(com.ibm.jbatch.container.services.impl.DelegatingBatchArtifactFactoryImpl.ArtifactMap tempMap, InputStream is)
-
init
public void init(IBatchConfig batchConfig) throws BatchContainerServiceException
- Specified by:
initin interfaceIBatchServiceBase- Throws:
BatchContainerServiceException
-
shutdown
public void shutdown() throws BatchContainerServiceException- Specified by:
shutdownin interfaceIBatchServiceBase- Throws:
BatchContainerServiceException
-
-