FileDocCategorySizeDatePackage
TransactionWrapper.javaAPI DocExample2587Mon Nov 24 09:38:14 GMT 2003com.oreilly.patterns.chapter10

TransactionWrapper

public final class TransactionWrapper extends Object

Fields Summary
Constructors Summary
Methods Summary
static java.lang.Objectdecorate(java.lang.Object delegate)
Decorates a business delegate object with a wrapper. The object returned by this method will implement all of the interfaces originally implemented by the target.

param
The Business Delegate to wrap
return
The business delegate wrapped in this wrapper

        return Proxy.newProxyInstance(delegate.getClass().getClassLoader(),
            delegate.getClass().getInterfaces(),
            new XAWrapperHandler(delegate));