public static Object instantiateObject(String className) { return instantiateObject(className, null); }
public static ExecutorService createExecutorService(String className) { try { ExecutorService service = ( ExecutorService ) ClassUtils.instantiateObject( className ); return service; } catch ( Throwable e ) { throw new RuntimeException("Unable to instantiate ExecutorService '" + className + "'", e ); } }
public static RuleBaseUpdateListener createListener(String className, StatefulSession session) { try { RuleBaseUpdateListener listener = ( RuleBaseUpdateListener ) ClassUtils.instantiateObject( className ); listener.setSession( session ); return listener; } catch ( Throwable e ) { throw new RuntimeException("Unable to instantiate RuleBaseUpdateListener '" + className + "'", e ); } }
Handler handler = (Handler) ClassUtils.instantiateObject( handlerName, this.classLoader );
Object object = ClassUtils.instantiateObject( rb.getConfiguration().getConsequenceExceptionHandler(), rb.getConfiguration().getClassLoader() ); if ( object instanceof ConsequenceExceptionHandler ) {