mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 10:59:17 +00:00
Implementatation of the Service locator pattern
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user