Class AbstractReloadableObjectCreator

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void checkForUpdates()
      Invoked to force the receiver to check for updates to whatever underlying resources it makes use of.
      protected abstract java.lang.Object createInstance​(java.lang.Class clazz)
      Invoked when an instance of the class is needed.
      java.lang.Object createObject()
      Create and return the object.
      java.lang.Class<?> doClassLoad​(java.lang.String className)  
      java.lang.Class<?> loadAndTransformClass​(java.lang.String className)
      Load the class, transforming it as necessary.
      boolean shouldInterceptClassLoading​(java.lang.String className)
      Identifies which classes are to be loaded.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createObject

        public java.lang.Object createObject()
        Description copied from interface: ObjectCreator
        Create and return the object. In some limited circumstances, the implementation may cache the result, returning the same object for repeated calls.
        Specified by:
        createObject in interface ObjectCreator
      • createInstance

        protected abstract java.lang.Object createInstance​(java.lang.Class clazz)
        Invoked when an instance of the class is needed. It is the responsibility of this method (as implemented in a subclass) to instantiate the class and inject dependencies into the class.
        See Also:
      • loadAndTransformClass

        public java.lang.Class<?> loadAndTransformClass​(java.lang.String className)
                                                 throws java.lang.ClassNotFoundException
        Description copied from interface: ClassLoaderDelegate
        Load the class, transforming it as necessary.
        Specified by:
        loadAndTransformClass in interface ClassLoaderDelegate
        className - binary class name
        loaded and (if not an inner class) transformed class
      • doClassLoad

        public java.lang.Class<?> doClassLoad​(java.lang.String className)