Implementatation of the Service locator pattern

This commit is contained in:
MSaifAsif
2014-12-06 02:39:54 +05:00
parent 3e42a10060
commit 1cb62f543b
10 changed files with 282 additions and 0 deletions
@@ -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();
}