![JAR search and dependency download from the Maven repository](/logo.png)
com.googlecode.ssdutils.beanconverter.examples.testcases.FactoryBeanAnnotationTest Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright (c) 2010 Sylvain Sicard.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* Contributors:
* Sylvain Sicard - initial API and implementation
******************************************************************************/
package com.googlecode.ssdutils.beanconverter.examples.testcases;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;
import com.googlecode.ssdutils.beanconverter.examples.services.PersonService;
/**
* @author Sylvain Sicard
*
*/
@Component
public class FactoryBeanAnnotationTest {
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicationContext(
"application-context.xml");
PersonService personService = context.getBean(PersonService.class);
personService.printName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy