// Path: tutorial/hello-world/hello-service/src/main/java/de/akquinet/chameria/tutorial/hello/Hello.java
// public interface Hello {
//     
//     public String hello(String name);
//     
// }


import de.akquinet.chameria.tutorial.hello.Hello;
import org.apache.felix.ipojo.annotations.*;
import org.osgi.service.http.HttpService;
import org.osgi.service.http.NamespaceException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.Writer;
package de.akquinet.chameria.tutorial.hello.impl;



/**
 * A simple servlet invoking the Hello service, and returning the response.
 *
 * This components is requiring the Hello Service as well as the HttpService (provided by ChameRIA), to
 * registers the servlet.
 */
@Component(immediate = true)
@Instantiate
public class HelloEndpoint extends HttpServlet {
    
    
    @Requires
    private HttpService server;

    @Requires
// Path: tutorial/hello-world/hello-service/src/main/java/de/akquinet/chameria/tutorial/hello/Hello.java
// public interface Hello {
//     
//     public String hello(String name);
//     
// }


// Path: tutorial/hello-world/hello-service/src/main/java/de/akquinet/chameria/tutorial/hello/impl/HelloEndpoint.java
import de.akquinet.chameria.tutorial.hello.Hello;
import org.apache.felix.ipojo.annotations.*;
import org.osgi.service.http.HttpService;
import org.osgi.service.http.NamespaceException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.Writer;

package de.akquinet.chameria.tutorial.hello.impl;



/**
 * A simple servlet invoking the Hello service, and returning the response.
 *
 * This components is requiring the Hello Service as well as the HttpService (provided by ChameRIA), to
 * registers the servlet.
 */
@Component(immediate = true)
@Instantiate
public class HelloEndpoint extends HttpServlet {
    
    
    @Requires
    private HttpService server;

    @Requires
    private Hello hello;