
public final class ArtifactFactoryWrapper extends AbstractArtifactFactory
| Constructor and Description |
|---|
ArtifactFactoryWrapper(ArtifactFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(String ref,
Class<?> cls,
ClassLoader classLoader)
The create method creates an instance
corresponding to a ref value from a Job XML.
|
void |
destroy(Object instance)
The destroy method destroys an instance created
by this factory.
|
Class<?> |
getArtifactClass(String ref,
ClassLoader classLoader)
Gets the class type of the artifact represented by ref.
|
doInjection, invokeAnnotatedLifecycleMethodpublic ArtifactFactoryWrapper(ArtifactFactory factory)
public void destroy(Object instance)
ArtifactFactorydestroy in interface ArtifactFactorydestroy in class AbstractArtifactFactoryinstance - to destroypublic Class<?> getArtifactClass(String ref, ClassLoader classLoader)
ArtifactFactoryref - the ref name of the artifactclassLoader - the class loader for loading the artifact classpublic Object create(String ref, Class<?> cls, ClassLoader classLoader) throws Exception
ArtifactFactoryref - value from Job XMLcls - the class type of the target artifact. Either ref or cls may be specified.classLoader - the class loader for loading the artifact classException - if instance cannot be created.Copyright © 2018 JBoss by Red Hat. All rights reserved.