Files
java-design-patterns/service-locator/src/main/java/com/iluwater/Service.java
T
2014-12-06 02:39:54 +05:00

30 lines
532 B
Java

package com.iluwater;
/**
* This is going to be the parent service interface which we will
* use to create our services. All services will have a
* <li>service name</li>
* <li>unique id</li>
* <li>execution work flow</li>
* @author saifasif
*
*/
public interface Service {
/*
* The human readable name of the service
*/
public String getName();
/*
* Unique ID of the particular service
*/
public int getId();
/*
* The workflow method that defines what this service does
*/
public void execute();
}