Package org.jboss.system.metadata

Examples of org.jboss.system.metadata.ServiceDependencyMetaData


/* 152 */       ServiceMetaData parentJacc = (ServiceMetaData)childDU.getParent().getAttachment("jboss.jacc");
/* 153 */       if (parentJacc == null) {
/* 154 */         throw new IllegalStateException("Parent JACC Policy is null");
/*     */       }
/* 156 */       List dependencies = new ArrayList();
/* 157 */       ServiceDependencyMetaData sdmd = new ServiceDependencyMetaData();
/* 158 */       sdmd.setIDependOnObjectName(subjaccPolicy.getObjectName());
/* 159 */       dependencies.add(sdmd);
/* 160 */       parentJacc.setDependencies(dependencies);
/*     */
/* 163 */       List attributes = new ArrayList();
/* 164 */       ServiceAttributeMetaData attribute = new ServiceAttributeMetaData();
View Full Code Here


/*     */
/* 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)
/*     */     {
View Full Code Here

TOP

Related Classes of org.jboss.system.metadata.ServiceDependencyMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.