mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-21 02:24:21 +00:00
#108 Consistent package naming throughout the examples
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.iluwatar.business.delegate;
|
||||
|
||||
/**
|
||||
*
|
||||
* Class for performing service lookups
|
||||
*
|
||||
*/
|
||||
public class BusinessLookup {
|
||||
|
||||
public BusinessService getBusinessService(ServiceType serviceType) {
|
||||
if (serviceType.equals(ServiceType.EJB)) {
|
||||
return new EjbService();
|
||||
} else {
|
||||
return new JmsService();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user