Class SpringLoader

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class SpringLoader
    extends java.lang.Object
    implements org.springframework.context.ApplicationContextAware
    Configures a plugin context. Also allows for package scanning and bean promotion from a plugin to the application's context.
    • Constructor Summary

      Constructors 
      Constructor Description
      SpringLoader​(org.springframework.context.annotation.AnnotationConfigApplicationContext pluginContext, java.lang.ClassLoader pluginClassLoader, java.util.List<java.lang.String> packagesToScan, java.util.List<java.lang.Class> classesToRegister)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  
      • Methods inherited from class java.lang.Object

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

      • SpringLoader

        public SpringLoader​(org.springframework.context.annotation.AnnotationConfigApplicationContext pluginContext,
                            java.lang.ClassLoader pluginClassLoader,
                            java.util.List<java.lang.String> packagesToScan,
                            java.util.List<java.lang.Class> classesToRegister)
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException