The org.activiti.spring.SpringTransactionContextFactory class shows the following warning in eclipse:
“TransactionContextFactory is a raw type. References to generic type TransactionContextFactory<T,C> should be
parameterized”
Should this class be defined using the following generics instead? Note the signature of the method changes slightly.
public class SpringTransactionContextFactory implements TransactionContextFactory<TransactionListener, CommandContext> {
…
@Override
public TransactionContext openTransactionContext(CommandContext commandContext) {
return new SpringTransactionContext(transactionManager, commandContext, transactionSynchronizationAdapterOrder);
}
}