/* */
/* 240 */ List dependencies = new ArrayList();
/* */
/* 243 */ if ((this.ccmServiceName != null) && (this.ccmServiceName.length() > 0))
/* */ {
/* 245 */ ServiceDependencyMetaData ccm = new ServiceDependencyMetaData();
/* 246 */ ccm.setIDependOn(this.ccmServiceName);
/* 247 */ dependencies.add(ccm);
/* */ }
/* */
/* 250 */ JBossEnterpriseBeansMetaData beans = deployment.getEnterpriseBeans();
/* 251 */ Iterator beansIter = beans.iterator();
/* 252 */ HashSet invokerNames = new HashSet();
/* 253 */ HashSet beanDepends = new HashSet();
/* 254 */ while (beansIter.hasNext())
/* */ {
/* 256 */ JBossEnterpriseBeanMetaData bmd = (JBossEnterpriseBeanMetaData)beansIter.next();
/* 257 */ Set depends = bmd.getDepends();
/* 258 */ if (depends != null)
/* 259 */ beanDepends.addAll(depends);
/* 260 */ String configName = bmd.getConfigurationName();
/* 261 */ ContainerConfigurationMetaData cmd = bmd.determineContainerConfiguration();
/* 262 */ Set invokers = cmd.getInvokerProxyBindingNames();
/* 263 */ if (invokers != null) {
/* 264 */ for (String iname : invokers)
/* */ {
/* 266 */ InvokerProxyBindingMetaData imd = deployment.getInvokerProxyBinding(iname);
/* 267 */ if (imd == null)
/* 268 */ throw new DeploymentException("Failed to locate invoker: " + iname);
/* 269 */ String invokerName = imd.getInvokerMBean();
/* 270 */ if (invokerName.equalsIgnoreCase("default"))
/* */ {
/* */ continue;
/* */ }
/* */
/* 275 */ if (!invokerNames.contains(invokerName))
/* */ {
/* 277 */ invokerNames.add(invokerName);
/* 278 */ ServiceDependencyMetaData invoker = new ServiceDependencyMetaData();
/* 279 */ invoker.setIDependOn(invokerName);
/* 280 */ dependencies.add(invoker);
/* */ }
/* */
/* */ }
/* */
/* */ }
/* */
/* */ }
/* */
/* */ try
/* */ {
/* 292 */ for (String depend : beanDepends)
/* */ {
/* 294 */ ObjectName n = new ObjectName(depend);
/* 295 */ ServiceDependencyMetaData sdmd = new ServiceDependencyMetaData();
/* 296 */ sdmd.setIDependOn(n.toString());
/* 297 */ dependencies.add(sdmd);
/* */ }
/* */ }
/* */ catch (MalformedObjectNameException e)
/* */ {