Package net.sourceforge.urlrewriter4j.core.configuration

Examples of net.sourceforge.urlrewriter4j.core.configuration.SpringBeanFactory


  public void newInstance() throws Exception {
    StaticApplicationContext oContext = new StaticApplicationContext();
    String oClassName = MyAction.class.getName();
    oContext.registerSingleton(oClassName, MyAction.class);
   
    SpringBeanFactory oFactory = new SpringBeanFactory();
    oFactory.setApplicationContext(oContext);
    Object oActual = oFactory.newInstance(MyAction.class, oClassName);
    assertNotNull(oActual);
    assertEquals(MyAction.class, oActual.getClass());
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.urlrewriter4j.core.configuration.SpringBeanFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.