/** * Finds the class with the specified <a href="#name">binary name</a>. * This method downloads the bytecode from a provider of the cluster view. * @param binaryName The <a href="#name">binary name</a> of the class * @return The resulting <tt>Class</tt> object * @throws ClassNotFoundException If the class could not be found */ @Override protected synchronized Class<?> findClass(final String binaryName) throws ClassNotFoundException { logger.debug("Downloading {0}...", binaryName); try { byte[] bytes = clientClusterViewManager.getBytecode(binaryName); return defineClass(binaryName, bytes, 0, bytes.length); } catch (ClientClusterViewManagerException e) { throw new ClassNotFoundException(); } }
protocol = ((ClientClusterViewManager) clusterViewManager).getProtocolName(); wrappedFactoryName = ((ClientClusterViewManager) clusterViewManager).getInitialContextFactoryName(); serverRefs = ((ClientClusterViewManager) clusterViewManager).getProviderURLs(); registryId = ((ClientClusterViewManager) clusterViewManager).getLocalRegistryId();
logger.debug("Object: {0} - Invoke: {1} > onInvokeException=RETRY, Forcing an update...", objectName, methodName); ((ClientClusterViewManager) clusterViewManager).pullAndUpdateObjectInfos(objectName);