Package core

Examples of 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


@Configuration
public class Beans {

  @Bean
  public GreetingService service() {
    return new SimpleGreetingService(generator());
  }
View Full Code Here

TOP

Related Classes of core.SimpleGreetingService

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.