Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.ops4j.pax.jdbc.pool.aries.impl;
 
 
final class TransactionManagerTracker extends
    private Logger LOG = LoggerFactory.getLogger(TransactionManagerTracker.class);
    public TransactionManagerTracker(BundleContext context) {
        super(contextAriesTransactionManager.classnull);
    }
    @Override
        ServiceReference<AriesTransactionManagerreference) {
        .info("TransactionManager service detected. Providing support for XA DataSourceFactories");
        AriesTransactionManager tm = .getService(reference);
        DataSourceFactoryTracker dsManager = new DataSourceFactoryTracker(tm);
        dsManager.open();
        return dsManager;
    }
    @Override
        DataSourceFactoryTracker service) {
    }
    @Override
    public void removedService(ServiceReference<AriesTransactionManagerreference,
        DataSourceFactoryTracker service) {
        .info("TransactionManager service lost. Shutting down support for XA DataSourceFactories");
        service.close();
        .ungetService(reference);
    }
New to GrepCode? Check out our FAQ X