Code example for XmlBeanFactory

Methods: getBean

0
    	throws Exception
    { 
		Realms realms;
         
        ClassPathResource config = new ClassPathResource( "SimpleSpringTest.xml" );
        XmlBeanFactory factory = new XmlBeanFactory( config );
 
        realms = (Realms) factory.getBean( "realms" );
		return realms;
    } 
     
 
	/** 
	 * Test remote access to token service.  In particular, authenticateUser() 
	 * and getTokenProperties().  
	 */ 
	public void testSimple() 
		throws Exception
	{ 
		Realms        realms;
Experience pair programming with AI  Get Codota for Java