public JtaTransactionInterceptorBinding() {
super("jta-transaction-interceptor");
}
public Object parse(Element element, Parse parse, Parser parser) {
JtaTransactionInterceptor jtaTransactionInterceptor = new JtaTransactionInterceptor();
if ( element.hasAttribute("policy")
&& ("requiresNew".equals(element.getAttribute("policy")))
) {
jtaTransactionInterceptor.setPolicy(Policy.REQUIRES_NEW);
}
return new ProvidedObjectDescriptor(jtaTransactionInterceptor);
}