Class BeanClassRefreshAgent


  • public class BeanClassRefreshAgent
    extends Object
    Handle definition and redefinition of bean classes in BeanManager. If the bean class already exists than, according reloading policy, either bean instance re-injection or bean context reloading is processed.
    Author:
    Vladimir Dvorak
    • Constructor Detail

      • BeanClassRefreshAgent

        public BeanClassRefreshAgent()
    • Method Detail

      • reloadBean

        public static void reloadBean​(ClassLoader appClassLoader,
                                      String beanClassName,
                                      Map<String,​String> oldFullSignatures,
                                      Map<String,​String> oldSignatures,
                                      String strReloadStrategy,
                                      URL beanArchiveUrl)
                               throws IOException
        Reload bean in existing bean manager. Called by a reflection command from BeanRefreshCommand transformer.
        Parameters:
        appClassLoader - the application class loader
        beanClassName - the bean class name
        oldFullSignatures - the old full signatures
        oldSignatures - the map of class name to old signature
        strReloadStrategy - the bean reload strategy
        beanArchiveUrl - the bean archive url
        Throws:
        IOException - error working with classDefinition