Package org.jboss.system.metadata

Examples of org.jboss.system.metadata.ServiceAttributeMetaData


/*  82 */     return constructor;
/*     */   }
/*     */
/*     */   public ServiceAttributeMetaData buildSimpleAttribute(String name, String value)
/*     */   {
/*  89 */     ServiceAttributeMetaData att = new ServiceAttributeMetaData();
/*  90 */     att.setName(name);
/*  91 */     ServiceTextValueMetaData dep = new ServiceTextValueMetaData(value);
/*  92 */     att.setValue(dep);
/*  93 */     return att;
/*     */   }
View Full Code Here


/* 107 */     return new ArrayList();
/*     */   }
/*     */
/*     */   public ServiceAttributeMetaData buildDependencyAttribute(String name, String dependency)
/*     */   {
/* 112 */     ServiceAttributeMetaData att = new ServiceAttributeMetaData();
/* 113 */     ServiceDependencyValueMetaData dep = new ServiceDependencyValueMetaData();
/* 114 */     dep.setDependency(dependency);
/*     */
/* 116 */     if (name != null) {
/* 117 */       att.setName(name);
/*     */     }
/* 119 */     att.setValue(dep);
/* 120 */     return att;
/*     */   }
View Full Code Here

/* 124 */       constructor.setSignature(new String[] { ConnectorMetaData.class.getName() });
/* 125 */       constructor.setParameters(new Object[] { cmd });
/* 126 */       rarDeployment.setConstructor(constructor);
/*     */
/* 128 */       List attributes = new ArrayList();
/* 129 */       ServiceAttributeMetaData attribute = null;
/* 130 */       if (this.workManagerName != null)
/*     */       {
/* 132 */         attribute = new ServiceAttributeMetaData();
/* 133 */         attribute.setName("WorkManager");
/* 134 */         attribute.setValue(new ServiceInjectionValueMetaData(this.workManagerName));
/* 135 */         attributes.add(attribute);
/*     */       }
/* 137 */       if (this.xaTerminatorName != null)
/*     */       {
/* 139 */         attribute = new ServiceAttributeMetaData();
/* 140 */         attribute.setName("XATerminator");
/* 141 */         attribute.setValue(new ServiceInjectionValueMetaData(this.xaTerminatorName, "XATerminator"));
/* 142 */         attributes.add(attribute);
/*     */       }
/* 144 */       if (!attributes.isEmpty()) {
/* 145 */         rarDeployment.setAttributes(attributes);
/*     */       }
View Full Code Here

/* 158 */       sdmd.setIDependOnObjectName(subjaccPolicy.getObjectName());
/* 159 */       dependencies.add(sdmd);
/* 160 */       parentJacc.setDependencies(dependencies);
/*     */
/* 163 */       List attributes = new ArrayList();
/* 164 */       ServiceAttributeMetaData attribute = new ServiceAttributeMetaData();
/* 165 */       attribute.setName("JaccPolicyMBean");
/* 166 */       String parentObjectName = parentJacc.getObjectName().getCanonicalName();
/* 167 */       ServiceInjectionValueMetaData sivmd = new ServiceInjectionValueMetaData(parentObjectName);
/* 168 */       sivmd.setDependentState(ControllerState.CONFIGURED);
/* 169 */       attribute.setValue(sivmd);
/* 170 */       attributes.add(attribute);
/* 171 */       attributes.addAll(subjaccPolicy.getAttributes());
/* 172 */       subjaccPolicy.setAttributes(attributes);
/*     */     }
/*     */   }
View Full Code Here

/* 205 */     ApplicationMetaData legacyMD = new ApplicationMetaData(deployment);
/* 206 */     ctor.setParameters(new Object[] { unit, legacyMD });
/* 207 */     ejbModule.setConstructor(ctor);
/*     */
/* 210 */     List attrs = new ArrayList();
/* 211 */     ServiceAttributeMetaData attr = new ServiceAttributeMetaData();
/* 212 */     attr.setName("TransactionManagerFactory");
/* 213 */     ServiceDependencyValueMetaData dependencyValue = new ServiceDependencyValueMetaData();
/* 214 */     dependencyValue.setDependency(getTransactionManagerServiceName());
/* 215 */     dependencyValue.setProxyType("attribute");
/* 216 */     attr.setValue(dependencyValue);
/* 217 */     attrs.add(attr);
/*     */
/* 219 */     String wsName = getWebServiceName();
/* 220 */     if (wsName != null)
/*     */     {
/* 222 */       ServiceAttributeMetaData ws = new ServiceAttributeMetaData();
/* 223 */       ws.setName("WebServiceName");
/* 224 */       ServiceDependencyValueMetaData wsDepends = new ServiceDependencyValueMetaData();
/* 225 */       wsDepends.setDependency(wsName);
/* 226 */       ws.setValue(wsDepends);
/* 227 */       attrs.add(ws);
/*     */     }
/*     */
/* 230 */     ServiceAttributeMetaData tms = new ServiceAttributeMetaData();
/* 231 */     ServiceDependencyValueMetaData tmsDepends = new ServiceDependencyValueMetaData();
/* 232 */     tms.setName("TimerService");
/* 233 */     tmsDepends.setDependency(this.timerServiceName);
/* 234 */     tmsDepends.setProxyType("attribute");
/* 235 */     tms.setValue(tmsDepends);
/* 236 */     attrs.add(tms);
/*     */
/* 238 */     ejbModule.setAttributes(attrs);
/*     */
/* 240 */     List dependencies = new ArrayList();
View Full Code Here

TOP

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

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.