mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 00:59:02 +00:00
30 lines
532 B
Java
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();
|
|
|
|
}
|