| File | Line | 
|---|
| org/apache/geronimo/transaction/manager/GeronimoTransactionManagerGBean.java | 43 | 
| org/apache/geronimo/transaction/manager/TransactionManagerImplGBean.java | 43 | 
        super(defaultTransactionTimeoutSeconds, xidFactory, transactionLog, resourceManagers);
    }
    /**
     * We can track as resources are added into the geronimo kernel.
     *
     * @param resourceManagers
     * @return the original list of resources.
     */
    protected List watchResourceManagers(Collection resourceManagers) {
        if( resourceManagers instanceof ReferenceCollection ) {
            List copy;
            synchronized (resourceManagers) {
                copy = new ArrayList(resourceManagers);
                    ((ReferenceCollection)resourceManagers).addReferenceCollectionListener(new ReferenceCollectionListener() {
                    public void memberAdded(ReferenceCollectionEvent event) {
                        ResourceManager resourceManager = (ResourceManager) event.getMember();
                        recoverResourceManager(resourceManager);
                    }
                    public void memberRemoved(ReferenceCollectionEvent event) {
                    }
                });
            }
            return copy;
        } else {
            return super.watchResourceManagers(resourceManagers);
        }
    }
    public static final GBeanInfo GBEAN_INFO;
    static {
        GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(TransactionManagerImplGBean.class, NameFactory.TRANSACTION_MANAGER); | 
                        
                    
                
            
            
                
                         
                 |