示例#1
0
 @SuppressWarnings("unchecked")
 private Class<? extends AbstractModuleManager> getModuleManagerImpl() {
   String moduleManagerImplClassName =
       System.getProperty(MODULE_MANAGER_IMPL_CLASS, DefaultModuleManagerImpl.class.getName());
   log.debug("Using module manager implementation: {}", moduleManagerImplClassName);
   try {
     Class<?> clazz = Class.forName(moduleManagerImplClassName);
     return (Class<? extends AbstractModuleManager>) clazz;
   } catch (ClassNotFoundException e) {
     throw new RuntimeException(
         "Could not load module manager impl: " + moduleManagerImplClassName, e);
   }
 }
示例#2
0
 private ActorRef createComponent(Class<?> clazz, Object... arg) {
   return createComponent(clazz.getName(), clazz, arg);
 }