I am using  4.0.M5.
The next code used to work in a previous version, but now PCADataDomainProvider 
is never called to create my custom DataDomain:

public class ServerModuleWithPostCommitActions implements 
org.apache.cayenne.di.Module {

    @Override
    public void configure(Binder binder) {
        
     
        
binder.bindList(Constants.SERVER_DOMAIN_FILTERS_LIST).add(PCATransactionFilter.class);
        
        
binder.bind(TransactionFactory.class).to(TransactionWithPostCommitActionsFactory.class);
        
        binder.bind(DataDomain.class).toProvider(PCADataDomainProvider.class);
        
        binder.bind(ObjectContextFactory.class).to(PCADataContextFactory.class);
        
    }

}



Atte. Juan Manuel Díaz Lara

Reply via email to