Class 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 Detail

      • ArtifactFactoryService

        public ArtifactFactoryService()
    • Method Detail

      • destroy

        public void destroy​(Object instance)
        Specified by:
        destroy in interface org.jberet.spi.ArtifactFactory
        Overrides:
        destroy in class org.jberet.creation.AbstractArtifactFactory
      • getArtifactClass

        public Class<?> getArtifactClass​(String ref,
                                         ClassLoader classLoader)
        Specified by:
        getArtifactClass in interface org.jberet.spi.ArtifactFactory
      • start

        public void start​(org.jboss.msc.service.StartContext context)
                   throws org.jboss.msc.service.StartException
        Specified by:
        start in interface org.jboss.msc.Service
        Specified by:
        start in interface org.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:
        stop in interface org.jboss.msc.Service
        Specified by:
        stop in interface org.jboss.msc.service.Service<org.jberet.spi.ArtifactFactory>
      • createContextHandle

        public org.wildfly.extension.batch.jberet.deployment.ContextHandle createContextHandle()
        Description copied from interface: WildFlyArtifactFactory
        Creates a context handle required for setting up the Jakarta Contexts and Dependency Injection context.
        Specified by:
        createContextHandle in interface WildFlyArtifactFactory
        Returns:
        the newly create context handle
      • getBeanManagerInjector

        public org.jboss.msc.value.InjectedValue<jakarta.enterprise.inject.spi.BeanManager> getBeanManagerInjector()