public ServiceConstructorMetaData buildConstructor(ManagedConnectionFactoryDeploymentMetaData mcfmd) { ServiceConstructorMetaData constructor = new ServiceConstructorMetaData(); constructor.setParameters(new Object[]{}); constructor.setParams(new String[]{}); return constructor; }
private void createTopLevelServiceBeanWithMetaData(String contextId, DeploymentUnit unit, T deployment) { // Provide a constructor for the service bean ServiceConstructorMetaData serviceConstructor = new ServiceConstructorMetaData(); serviceConstructor.setSignature(new String[]{String.class.getName(), this.getMetaDataClassType().getName(), Boolean.class.getName()}); serviceConstructor.setParameters(new Object[]{contextId, deployment, Boolean.TRUE}); createJaccPolicyBean(serviceConstructor, unit); }
@Override public ServiceConstructorMetaData buildConstructor(ManagedConnectionFactoryDeploymentMetaData mcfmd) { ServiceConstructorMetaData constructor = new ServiceConstructorMetaData(); ConnectorMetaData md = repository.getConnectorMetaData(mcfmd.getRarName()); if( md == null ) throw new IllegalStateException("No ConnectorMetaData found for mdf rarName: "+mcfmd.getRarName()); constructor.setParameters(new Object[]{md, mcfmd, getConnectionManager(mcfmd)}); constructor.setSignature(new String[]{md.getClass().getName(), ManagedConnectionFactoryDeploymentMetaData.class.getName(), String.class.getName()}); return constructor; }
ServiceConstructorMetaData constructor = new ServiceConstructorMetaData(); constructor.setSignature(new String[] { RARDeploymentMetaData.class.getName() }); constructor.setParameters(new Object[] { rdmd }); rarDeployment.setConstructor(constructor);
constructor.setParameters(new Object[] { unit, this, deployment }); webModule.setConstructor(constructor);
serviceConstructor.setParameters(new Object[]{deploymentName, metaData}); subjaccPolicy.setConstructor(serviceConstructor);
new String[]{VFSDeploymentUnit.class.getName(), ApplicationMetaData.class.getName()} ); ctor.setParameters(new Object[]{unit, legacyMD}); ejbModule.setConstructor(ctor);