public abstract class AbstractArtifactFactory extends Object implements ArtifactFactory
ArtifactFactory
which contains some helper methods for dealing injecting
data if CDI is not available or the class was created from the job XML using the fully qualified class name.
Note that if subclasses over the destroy(Object)
method, they should invoke super.destroy(instance)
if the instance was not destroyed by another means, e.g. releasing the CDI context.
Constructor and Description |
---|
AbstractArtifactFactory() |
Modifier and Type | Method and Description |
---|---|
void |
destroy(Object instance)
The destroy method destroys an instance created
by this factory.
|
protected void |
doInjection(Object obj,
Class<?> cls,
ClassLoader classLoader,
JobContextImpl jobContext,
StepContextImpl stepContext,
Properties batchProps) |
protected void |
invokeAnnotatedLifecycleMethod(Object obj,
Class<?> cls,
Class<? extends Annotation> annCls) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, getArtifactClass
public void destroy(Object instance)
ArtifactFactory
destroy
in interface ArtifactFactory
instance
- to destroyprotected void doInjection(Object obj, Class<?> cls, ClassLoader classLoader, JobContextImpl jobContext, StepContextImpl stepContext, Properties batchProps) throws Exception
Exception
Copyright © 2020 JBoss by Red Hat. All rights reserved.