Package mfinder

Examples of mfinder.SimpleAction


    /**
     * Test of newInstance method, of class SpringObjectFactory.
     */
    @Test
    public void testNewInstance() {
        SimpleAction sa1 = objectFactory.newInstance(SimpleAction.class);
        sa1.springInject();
        SimpleAction sa2 = objectFactory.newInstance(SimpleAction.class);
        sa2.springInject();
        assertNotSame(sa1, sa2);
        //注入的为单例bean对象
        assertSame(sa1.springInject(), sa2.springInject());
    }
View Full Code Here

TOP

Related Classes of mfinder.SimpleAction

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.