org.tynamo.jpa.internal
Class JPATransactionDecoratorImpl

java.lang.Object
  extended by org.tynamo.jpa.internal.JPATransactionDecoratorImpl
All Implemented Interfaces:
JPATransactionDecorator

public class JPATransactionDecoratorImpl
extends Object
implements JPATransactionDecorator


Constructor Summary
JPATransactionDecoratorImpl(org.apache.tapestry5.ioc.services.AspectDecorator aspectDecorator, JPATransactionAdvisor advisor)
           
 
Method Summary
<T> T
build(Class<T> serviceInterface, T delegate, String serviceId)
          Builds a transaction interceptor instance around the delegate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPATransactionDecoratorImpl

public JPATransactionDecoratorImpl(org.apache.tapestry5.ioc.services.AspectDecorator aspectDecorator,
                                   JPATransactionAdvisor advisor)
Method Detail

build

public <T> T build(Class<T> serviceInterface,
                   T delegate,
                   String serviceId)
Description copied from interface: JPATransactionDecorator
Builds a transaction interceptor instance around the delegate.

Specified by:
build in interface JPATransactionDecorator
Parameters:
serviceInterface - interface implemented by the delegate
delegate - existing object to be wrapped
serviceId - id of service
Returns:
a new object implementing the interface that can be used in place of the delegate, providing transactional behavior


Copyright © 2009-2010. All Rights Reserved.