Package net.officefloor.jdbc.test
Class ValidatePooledConnectionDecorator
java.lang.Object
net.officefloor.jdbc.test.ValidatePooledConnectionDecorator
- All Implemented Interfaces:
ServiceFactory<PooledConnectionDecorator>,PooledConnectionDecorator,PooledConnectionDecoratorServiceFactory
public class ValidatePooledConnectionDecorator
extends Object
implements PooledConnectionDecorator, PooledConnectionDecoratorServiceFactory
PooledConnectionDecorator to validate the PooledConnection
instances.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateService(ServiceContext context) Creates the service.decorate(PooledConnection connection) Allows decorating thePooledConnection.
-
Constructor Details
-
ValidatePooledConnectionDecorator
public ValidatePooledConnectionDecorator()
-
-
Method Details
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<PooledConnectionDecorator>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
decorate
Description copied from interface:PooledConnectionDecoratorAllows decorating thePooledConnection.- Specified by:
decoratein interfacePooledConnectionDecorator- Parameters:
connection-PooledConnectionto decorate.- Returns:
- Decorated
PooledConnectionor possibly new wrappingConnectionimplementation.
-