Class RepositoryRefreshAgent


  • public class RepositoryRefreshAgent
    extends java.lang.Object
    Handle redefinition of deltaspike repository
    Author:
    Vladimir Dvorak
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean reloadFlag  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T getInstance​(java.lang.Class<T> beanClass)  
      static void refreshHandler​(java.lang.ClassLoader appClassLoader, java.lang.String repoClassName, java.util.List repositoryProxies)
      Reload bean in existing bean manager.
      • Methods inherited from class java.lang.Object

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

      • reloadFlag

        public static boolean reloadFlag
    • Constructor Detail

      • RepositoryRefreshAgent

        public RepositoryRefreshAgent()
    • Method Detail

      • refreshHandler

        public static void refreshHandler​(java.lang.ClassLoader appClassLoader,
                                          java.lang.String repoClassName,
                                          java.util.List repositoryProxies)
        Reload bean in existing bean manager. Called by a reflection command from BeanRefreshCommand transformer.
        Parameters:
        appClassLoader - the application class loader
        repoClassName - the repo class name
      • getInstance

        public static <T> T getInstance​(java.lang.Class<T> beanClass)