/** * Set the user transaction registry * @param v The value */ public void setTransactionRegistry(org.jboss.tm.usertx.UserTransactionRegistry v) { ((org.jboss.tm.usertx.UserTransactionProvider)utp).setTransactionRegistry(v); } }
/** * Add a provider * * @param provider the provider * @throws IllegalArgumentException for a null provider */ public void addProvider(UserTransactionProvider provider) { if (provider == null) throw new IllegalArgumentException("Null provider"); provider.setTransactionRegistry(this); providers.add(provider); log.debug(this + " addProvider " + provider); }
/** * Add a provider * * @param provider the provider * @throws IllegalArgumentException for a null provider */ public void addProvider(UserTransactionProvider provider) { if (provider == null) throw new IllegalArgumentException("Null provider"); provider.setTransactionRegistry(this); providers.add(provider); log.debug(this + " addProvider " + provider); }
/** * Remove a provider * * @param provider the provider * @throws IllegalArgumentException for a null provider */ public void removeProvider(UserTransactionProvider provider) { if (provider == null) throw new IllegalArgumentException("Null provider"); if (providers.remove(provider)) { provider.setTransactionRegistry(null); log.debug(this + " removeProvider " + provider); } }
/** * Remove a provider * * @param provider the provider * @throws IllegalArgumentException for a null provider */ public void removeProvider(UserTransactionProvider provider) { if (provider == null) throw new IllegalArgumentException("Null provider"); if (providers.remove(provider)) { provider.setTransactionRegistry(null); log.debug(this + " removeProvider " + provider); } }