Class ArtifactFactoryService
- java.lang.Object
-
- org.jberet.creation.AbstractArtifactFactory
-
- org.wildfly.extension.batch.jberet.deployment.ArtifactFactoryService
-
- All Implemented Interfaces:
org.jberet.spi.ArtifactFactory,org.jboss.msc.Service,WildFlyArtifactFactory
public class ArtifactFactoryService extends org.jberet.creation.AbstractArtifactFactory implements org.jboss.msc.Service, WildFlyArtifactFactory
ArtifactFactory for Jakarta EE runtime environment.- Author:
- James R. Perkins, Richard Opalka
-
-
Constructor Summary
Constructors Constructor Description ArtifactFactoryService(Consumer<org.jberet.spi.ArtifactFactory> artifactFactoryConsumer, Supplier<jakarta.enterprise.inject.spi.BeanManager> beanManagerSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectcreate(String ref, Class<?> cls, ClassLoader classLoader)org.wildfly.extension.batch.jberet.deployment.ContextHandlecreateContextHandle()Creates a context handle required for setting up the Jakarta Contexts and Dependency Injection context.voiddestroy(Object instance)Class<?>getArtifactClass(String ref, ClassLoader classLoader)voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Method Detail
-
destroy
public void destroy(Object instance)
- Specified by:
destroyin interfaceorg.jberet.spi.ArtifactFactory- Overrides:
destroyin classorg.jberet.creation.AbstractArtifactFactory
-
getArtifactClass
public Class<?> getArtifactClass(String ref, ClassLoader classLoader)
- Specified by:
getArtifactClassin interfaceorg.jberet.spi.ArtifactFactory
-
create
public Object create(String ref, Class<?> cls, ClassLoader classLoader) throws Exception
- Specified by:
createin interfaceorg.jberet.spi.ArtifactFactory- Throws:
Exception
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service
-
createContextHandle
public org.wildfly.extension.batch.jberet.deployment.ContextHandle createContextHandle()
Description copied from interface:WildFlyArtifactFactoryCreates a context handle required for setting up the Jakarta Contexts and Dependency Injection context.- Specified by:
createContextHandlein interfaceWildFlyArtifactFactory- Returns:
- the newly create context handle
-
-