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,org.jboss.msc.service.Service<org.jberet.spi.ArtifactFactory>,org.jboss.msc.value.Value<org.jberet.spi.ArtifactFactory>,WildFlyArtifactFactory
public class ArtifactFactoryService extends org.jberet.creation.AbstractArtifactFactory implements org.jboss.msc.service.Service<org.jberet.spi.ArtifactFactory>, WildFlyArtifactFactory
ArtifactFactory for Jakarta EE runtime environment.- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description ArtifactFactoryService()
-
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)org.jboss.msc.value.InjectedValue<javax.enterprise.inject.spi.BeanManager>getBeanManagerInjector()org.jberet.spi.ArtifactFactorygetValue()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- Specified by:
startin interfaceorg.jboss.msc.service.Service<org.jberet.spi.ArtifactFactory>- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<org.jberet.spi.ArtifactFactory>
-
getValue
public org.jberet.spi.ArtifactFactory getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<org.jberet.spi.ArtifactFactory>- Throws:
IllegalStateExceptionIllegalArgumentException
-
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
-
getBeanManagerInjector
public org.jboss.msc.value.InjectedValue<javax.enterprise.inject.spi.BeanManager> getBeanManagerInjector()
-
-