Resolves checkstyle errors for business-delegate, bytecode, caching (#1059)
* Reduces checkstyle errors in business-delegate * Reduces checkstyle errors in bytecode * Reduces checkstyle errors in caching
This commit is contained in:
committed by
Ilkka Seppälä
parent
6d1c0b1563
commit
efc17fcc70
@ -28,11 +28,11 @@ package com.iluwatar.business.delegate;
|
||||
* tiers. By using the pattern we gain loose coupling between the tiers. The Business Delegate
|
||||
* encapsulates knowledge about how to locate, connect to, and interact with the business objects
|
||||
* that make up the application.
|
||||
*
|
||||
*
|
||||
* <p>Some of the services the Business Delegate uses are instantiated directly, and some can be
|
||||
* retrieved through service lookups. The Business Delegate itself may contain business logic too
|
||||
* potentially tying together multiple service calls, exception handling, retrying etc.
|
||||
*
|
||||
*
|
||||
* <p>In this example the client ({@link Client}) utilizes a business delegate (
|
||||
* {@link BusinessDelegate}) to execute a task. The Business Delegate then selects the appropriate
|
||||
* service and makes the service call.
|
||||
|
@ -24,7 +24,7 @@
|
||||
package com.iluwatar.business.delegate;
|
||||
|
||||
/**
|
||||
* BusinessDelegate separates the presentation and business tiers
|
||||
* BusinessDelegate separates the presentation and business tiers.
|
||||
*/
|
||||
public class BusinessDelegate {
|
||||
|
||||
|
@ -33,6 +33,8 @@ public class BusinessLookup {
|
||||
private JmsService jmsService;
|
||||
|
||||
/**
|
||||
* Gets service instance based on service type.
|
||||
*
|
||||
* @param serviceType Type of service instance to be returned.
|
||||
* @return Service instance.
|
||||
*/
|
||||
|
@ -24,9 +24,7 @@
|
||||
package com.iluwatar.business.delegate;
|
||||
|
||||
/**
|
||||
*
|
||||
* Interface for service implementations
|
||||
*
|
||||
* Interface for service implementations.
|
||||
*/
|
||||
public interface BusinessService {
|
||||
|
||||
|
@ -24,9 +24,7 @@
|
||||
package com.iluwatar.business.delegate;
|
||||
|
||||
/**
|
||||
*
|
||||
* Client utilizes BusinessDelegate to call the business tier
|
||||
*
|
||||
* Client utilizes BusinessDelegate to call the business tier.
|
||||
*/
|
||||
public class Client {
|
||||
|
||||
|
@ -27,9 +27,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
* Service EJB implementation
|
||||
*
|
||||
* Service EJB implementation.
|
||||
*/
|
||||
public class EjbService implements BusinessService {
|
||||
|
||||
|
@ -27,9 +27,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
* Service JMS implementation
|
||||
*
|
||||
* Service JMS implementation.
|
||||
*/
|
||||
public class JmsService implements BusinessService {
|
||||
|
||||
|
@ -24,9 +24,7 @@
|
||||
package com.iluwatar.business.delegate;
|
||||
|
||||
/**
|
||||
*
|
||||
* Enumeration for service types
|
||||
*
|
||||
* Enumeration for service types.
|
||||
*/
|
||||
public enum ServiceType {
|
||||
|
||||
|
Reference in New Issue
Block a user