Class GlueFactory

java.lang.Object
com.xxl.job.core.glue.GlueFactory
Direct Known Subclasses:
SpringGlueFactory

public class GlueFactory extends Object
glue factory, product class/object by name
Author:
xuxueli 2016-1-2 20:02:27
  • Constructor Details

    • GlueFactory

      public GlueFactory()
  • Method Details

    • getInstance

      public static GlueFactory getInstance()
    • refreshInstance

      public static void refreshInstance(int type)
      refresh instance by type
      Parameters:
      type - 0-frameless, 1-spring;
    • loadNewInstance

      public IJobHandler loadNewInstance(String codeSource) throws Exception
      load new instance, prototype
      Parameters:
      codeSource -
      Returns:
      Throws:
      Exception
    • injectService

      public void injectService(Object instance)
      inject service of bean field
      Parameters:
      instance -