Class ArtifactFactoryService

    • Constructor Detail

      • ArtifactFactoryService

        public ArtifactFactoryService​(Consumer<org.jberet.spi.ArtifactFactory> artifactFactoryConsumer,
                                      Supplier<jakarta.enterprise.inject.spi.BeanManager> beanManagerSupplier)
    • 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
        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
      • 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