if (policy == null)
{
super.initialize();
}
TransactionAttributeType txType = getTxType(advisor, jp);
if (txType.equals(TransactionAttributeType.NEVER))
{
// make sure we use the EJB3 interceptor, not the AOP one.
return new TxInterceptor.Never(tm, policy);
}
else if (txType.equals(TransactionAttributeType.REQUIRED))
{
return new TxInterceptor.Required(tm, policy, timeout);
}
else if (txType.equals(TransactionAttributeType.REQUIRES_NEW))
{
return new TxInterceptor.RequiresNew(tm, policy, timeout);
}
else if(txType.equals(TransactionAttributeType.NOT_SUPPORTED))
{
return new TxInterceptor.NotSupported(tm, policy, timeout);
}
else if(txType.equals(TransactionAttributeType.MANDATORY))
{
return new TxInterceptor.Mandatory(tm, policy, timeout);
}
else if(txType.equals(TransactionAttributeType.SUPPORTS))
{
return new TxInterceptor.Supports(tm, policy, timeout);
}
else
{