Package com.drighetto.essai.springaop.bean

Examples of com.drighetto.essai.springaop.bean.SimpleBean


      // Initialize Spring context
      ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
     
      //Get bean from Spring context & call simple bean
      SimpleBean sb = (SimpleBean)context.getBean("simpleBean");
      System.out.println("---[Call method : sb.sayHello(\"Dom\") ]---");
      sb.sayHello("Dom");
      System.out.println("\n---------");
      System.out.println("----------------------------");
      System.out.println("---------\n");
      System.out.println("---[Call method : sb.sayHello() ]---");     
      System.out.println(sb.sayHello());
    } catch (Exception e) {
      e.printStackTrace();
    }

  }
View Full Code Here

TOP

Related Classes of com.drighetto.essai.springaop.bean.SimpleBean

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.