/** * @param protocolName The name of the protocol. * * @exception com.arjuna.mw.wscf.exceptions.ProtocolNotRegisteredException * Thrown if the requested coordination protocol has not been * registered. * @exception IllegalArgumentException * Thrown if the parameter is invalid. * * @return The class that implements the specified coordination protocol. * */ public Object getProtocolImplementation (String protocolName) throws ProtocolNotRegisteredException, IllegalArgumentException { synchronized (this) { if (protocolName == null) { throw new IllegalArgumentException(); } Object object = _protocols.get(protocolName); if (object == null) { throw new ProtocolNotRegisteredException(wscfLogger.i18NLogger.get_mw_wscf11_protocols_ProtocolManager_1() + protocolName); } return object; } }
/** * @param protocolName The name of the protocol. * * @exception com.arjuna.mw.wscf.exceptions.ProtocolNotRegisteredException * Thrown if the requested coordination protocol has not been * registered. * @exception IllegalArgumentException * Thrown if the parameter is invalid. * * @return The class that implements the specified coordination protocol. * */ public Object getProtocolImplementation (String protocolName) throws ProtocolNotRegisteredException, IllegalArgumentException { synchronized (this) { if (protocolName == null) { throw new IllegalArgumentException(); } Object object = _protocols.get(protocolName); if (object == null) { throw new ProtocolNotRegisteredException(wscfLogger.i18NLogger.get_mw_wscf11_protocols_ProtocolManager_1() + protocolName); } return object; } }