Package core

Examples of core.DefaultGreetingGenerator


import core.SimpleGreetingService;

public class SimpleDemo {

  public static void main(String[] args) {
    GreetingGenerator generator = new DefaultGreetingGenerator();
    SimpleGreetingService service = new SimpleGreetingService(generator);
    service.greet("World");
  }
View Full Code Here


    return new SimpleGreetingService(generator());
  }

  @Bean
  public GreetingGenerator generator() {
    return new DefaultGreetingGenerator();
  }
View Full Code Here

TOP

Related Classes of core.DefaultGreetingGenerator

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.