Package com.drighetto.essai.springaop.bean

Examples of com.drighetto.essai.springaop.bean.SimpleBean.sayHello()


      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());
View Full Code Here


      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
Copyright © 2018 www.massapi.com. 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.