prospring3.ch5.beanpostprocessor.DeassociateMain.java Source code

Java tutorial

Introduction

Here is the source code for prospring3.ch5.beanpostprocessor.DeassociateMain.java

Source

package prospring3.ch5.beanpostprocessor;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import prospring3.ch5.Ch5Config;
import prospring3.ch5.spring.FacebookService;

/**
 * ***********************************************************************
 * <p/>
 * Copyright:
 * 2012 1&1 Internet AG, Germany, http://www.1und1.de
 * <p/>
 * License:
 * commercial
 * <p/>
 * Authors:
 * Antonel (Tony) Pazargic (antonel.pazargic@1and1.ro)
 * <p/>
 * Date: 5/14/12
 * Time: 10:53 AM
 * <p/>
 * ***********************************************************************
 */
public class DeassociateMain {

    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(Ch5Config.class);
        final FacebookService facebookService = ctx.getBean(FacebookService.class);
        facebookService.deassociate();
        System.out.println("Finish");
    }

}