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
  • Field Summary

    Fields inherited from interface org.jboss.msc.Service

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArtifactFactoryService(Consumer<org.jberet.spi.ArtifactFactory> artifactFactoryConsumer, Supplier<jakarta.enterprise.inject.spi.BeanManager> beanManagerSupplier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String ref, Class<?> cls, ClassLoader classLoader)
     
    org.wildfly.extension.batch.jberet.deployment.ContextHandle
    Creates a context handle required for setting up the Jakarta Contexts and Dependency Injection context.
    void
    destroy(Object instance)
     
    getArtifactClass(String ref, ClassLoader classLoader)
     
    void
    start(org.jboss.msc.service.StartContext context)
     
    void
    stop(org.jboss.msc.service.StopContext context)
     

    Methods inherited from class org.jberet.creation.AbstractArtifactFactory

    doInjection, findBean, invokeAnnotatedLifecycleMethod

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ArtifactFactoryService

      public ArtifactFactoryService(Consumer<org.jberet.spi.ArtifactFactory> artifactFactoryConsumer, Supplier<jakarta.enterprise.inject.spi.BeanManager> beanManagerSupplier)
  • Method Details

    • 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
    • create

      public Object create(String ref, Class<?> cls, ClassLoader classLoader) throws Exception
      Specified by:
      create in interface org.jberet.spi.ArtifactFactory
      Throws:
      Exception
    • 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