Examples of ServiceConstructorMetaData


Examples of org.jboss.system.metadata.ServiceConstructorMetaData

/* 639 */       String name = getObjectName(metaData);
/* 640 */       ObjectName objectName = new ObjectName(name);
/* 641 */       webModule.setObjectName(objectName);
/* 642 */       webModule.setCode(WebModule.class.getName());
/*     */
/* 644 */       ServiceConstructorMetaData constructor = new ServiceConstructorMetaData();
/* 645 */       constructor.setSignature(new String[] { VFSDeploymentUnit.class.getName(), AbstractWarDeployer.class.getName(), AbstractWarDeployment.class.getName() });
/*     */
/* 647 */       constructor.setParameters(new Object[] { unit, this, deployment });
/* 648 */       webModule.setConstructor(constructor);
/*     */
/* 651 */       Collection depends = metaData.getDepends();
/* 652 */       List dependencies = new ArrayList();
/* 653 */       if (depends != null)
View Full Code Here

Examples of org.jboss.system.metadata.ServiceConstructorMetaData

/* 166 */     String jndiName = ds.getJndiName() == null ? "DefaultFakeDS" : ds.getJndiName();
/* 167 */     ObjectName objectName = new ObjectName("jboss.jca:type=FakeDataSourceConn,jndiName=" + jndiName);
/* 168 */     dsMbean.setObjectName(objectName);
/* 169 */     dsMbean.setCode(FakeDataSourceConn.class.getName());
/*     */
/* 171 */     ServiceConstructorMetaData constructor = new ServiceConstructorMetaData();
/* 172 */     constructor.setSignature(new String[] { DataSourceDeployment.class.getName() });
/* 173 */     constructor.setParameters(new Object[] { ds });
/* 174 */     dsMbean.setConstructor(constructor);
/*     */
/* 177 */     List attributes = new ArrayList();
/* 178 */     ServiceAttributeMetaData attribute = new ServiceAttributeMetaData();
/*     */
View Full Code Here

Examples of org.jboss.system.metadata.ServiceConstructorMetaData

/*  73 */     return attributes;
/*     */   }
/*     */
/*     */   public ServiceConstructorMetaData buildConstructor(ManagedConnectionFactoryDeploymentMetaData mcfmd)
/*     */   {
/*  79 */     ServiceConstructorMetaData constructor = new ServiceConstructorMetaData();
/*     */
/*  81 */     ConnectorMetaData md = this.repository.getConnectorMetaData(mcfmd.getRarName());
/*  82 */     if (md == null)
/*  83 */       throw new IllegalStateException("No ConnectorMetaData found for mdf rarName: " + mcfmd.getRarName());
/*  84 */     constructor.setParameters(new Object[] { md, mcfmd });
/*  85 */     constructor.setSignature(new String[] { md.getClass().getName(), ManagedConnectionFactoryDeploymentMetaData.class.getName() });
/*  86 */     return constructor;
/*     */   }
View Full Code Here

Examples of org.jboss.system.metadata.ServiceConstructorMetaData

/*  51 */     ServiceMetaData md = new ServiceMetaData();
/*  52 */     ObjectName on = buildObjectName(mcfmd);
/*  53 */     md.setObjectName(on);
/*  54 */     String code = getCode(mcfmd);
/*  55 */     md.setCode(code);
/*  56 */     ServiceConstructorMetaData cmd = buildConstructor(mcfmd);
/*  57 */     md.setConstructor(cmd);
/*  58 */     return md;
/*     */   }
View Full Code Here

Examples of org.jboss.system.metadata.ServiceConstructorMetaData

/*     */
/*     */   public abstract List<ServiceAttributeMetaData> buildAttributes(ManagedConnectionFactoryDeploymentMetaData paramManagedConnectionFactoryDeploymentMetaData);
/*     */
/*     */   public ServiceConstructorMetaData buildConstructor(ManagedConnectionFactoryDeploymentMetaData mcfmd)
/*     */   {
/*  79 */     ServiceConstructorMetaData constructor = new ServiceConstructorMetaData();
/*  80 */     constructor.setParameters(new Object[0]);
/*  81 */     constructor.setParams(new String[0]);
/*  82 */     return constructor;
/*     */   }
View Full Code Here

Examples of org.jboss.system.metadata.ServiceConstructorMetaData

/* 118 */       ServiceMetaData rarDeployment = new ServiceMetaData();
/* 119 */       String name = getObjectName(unit, cmd);
/* 120 */       ObjectName objectName = new ObjectName(name);
/* 121 */       rarDeployment.setObjectName(objectName);
/* 122 */       rarDeployment.setCode(RARDeployment.class.getName());
/* 123 */       ServiceConstructorMetaData constructor = new ServiceConstructorMetaData();
/* 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)
View Full Code Here

Examples of org.jboss.system.metadata.ServiceConstructorMetaData

/*     */       catch (Exception e)
/*     */       {
/* 139 */         throw new RuntimeException(e);
/*     */       }
/*     */
/* 142 */       ServiceConstructorMetaData constructor = new ServiceConstructorMetaData();
/* 143 */       constructor.setSignature(new String[] { String.class.getName(), Object.class.getName() });
/* 144 */       constructor.setParameters(new Object[] { str, getMetaData(childDU) });
/* 145 */       subjaccPolicy.setConstructor(constructor);
/*     */
/* 147 */       ArrayList services = new ArrayList();
/* 148 */       services.add(subjaccPolicy);
/* 149 */       childDU.addAttachment("jboss.jacc", subjaccPolicy, ServiceMetaData.class);
View Full Code Here

Examples of org.jboss.system.metadata.ServiceConstructorMetaData

/* 202 */     return null;
/*     */   }
/*     */
/*     */   private void createTopLevelServiceBeanWithMetaData(String contextId, DeploymentUnit unit)
/*     */   {
/* 208 */     ServiceConstructorMetaData constructor = new ServiceConstructorMetaData();
/* 209 */     constructor.setSignature(new String[] { String.class.getName(), Object.class.getName(), Boolean.class.getName() });
/*     */
/* 211 */     constructor.setParameters(new Object[] { contextId, getMetaData(unit), Boolean.TRUE });
/* 212 */     createJaccPolicyBean(constructor, unit);
/*     */   }
View Full Code Here

Examples of org.jboss.system.metadata.ServiceConstructorMetaData

/* 212 */     createJaccPolicyBean(constructor, unit);
/*     */   }
/*     */
/*     */   private void createTopLevelServiceBean(String contextId, DeploymentUnit unit)
/*     */   {
/* 218 */     ServiceConstructorMetaData constructor = new ServiceConstructorMetaData();
/* 219 */     constructor.setSignature(new String[] { String.class.getName() });
/* 220 */     constructor.setParameters(new Object[] { contextId });
/*     */
/* 222 */     createJaccPolicyBean(constructor, unit);
/*     */   }
View Full Code Here

Examples of org.jboss.system.metadata.ServiceConstructorMetaData

/* 195 */       throw new DeploymentException("Failed to create EJB module " + unit.getName() + ": malformed EjbModule name", e);
/*     */     }
/*     */
/* 199 */     ejbModule.setObjectName(moduleObjectName);
/*     */
/* 201 */     ServiceConstructorMetaData ctor = new ServiceConstructorMetaData();
/* 202 */     ctor.setSignature(new String[] { VFSDeploymentUnit.class.getName(), ApplicationMetaData.class.getName() });
/*     */
/* 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");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.