UsesPortInfo uInfo =
(UsesPortInfo) usesPortMap.get(usingPortName);
if (uInfo != null) {
synchronized(uInfo) {
if (uInfo.isUnregistered())
throw new PortNotDefinedException("Uses port: " + usingPortName +
" has been unregistered");
if (uInfo.getConnectionID() != null)
throw new NonstandardException("Uses Port : " + usingPortName +
" is already connected");
XCATConnectionID connectionID =
new XCATConnectionIDImpl(provider,
user,
providingPortName,
usingPortName,
providesPortHandle);
uInfo.setConnectionID(connectionID);
}
} else
throw new PortNotDefinedException("Uses Port : " + usingPortName +
" not defined");
}