public void setDescriptor(Application application) { // this is acceptable if the application actually represents // a standalone module java.util.Set appClientBundles = application.getBundleDescriptors(ApplicationClientDescriptor.class); if (appClientBundles.size() > 0) { this.descriptor = (ApplicationClientDescriptor) appClientBundles.iterator().next(); if (this.descriptor.getModuleDescriptor().isStandalone()) return; else this.descriptor = null; } DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.descriptorFailure", new Object[]{this}); throw new RuntimeException("Error setting descriptor " + descriptor + " in " + this); }
public void setDescriptor(Application application) { // this is acceptable if the application actually represents // a standalone module java.util.Set appClientBundles = application.getApplicationClientDescriptors(); if (appClientBundles.size() > 0) { this.descriptor = (ApplicationClientDescriptor) appClientBundles.iterator().next(); if (this.descriptor.getModuleDescriptor().isStandalone()) return; else this.descriptor = null; } DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.descriptorFailure", new Object[]{this}); throw new RuntimeException("Error setting descriptor " + descriptor + " in " + this); }
@Override public void setElementValue(XMLElement element, String value) { if (TagNames.MODULE_NAME.equals(element.getQName())) { getDescriptor().getModuleDescriptor().setModuleName(value); } else { super.setElementValue(element, value); } }
public void setElementValue(XMLElement element, String value) { if (TagNames.MODULE_NAME.equals(element.getQName())) { getDescriptor().getModuleDescriptor().setModuleName(value); } else { super.setElementValue(element, value); } }
public ObjectName registerAppClient( final ObjectName parentMBean, final MetadataImpl meta, final com.sun.enterprise.config.serverbeans.Application appConfig, final ApplicationClientDescriptor bundleDesc) { final String xmlDesc = getDeploymentDescriptor(bundleDesc); if ( xmlDesc != null ) { meta.setDeploymentDescriptor( xmlDesc ); } final String moduleName = bundleDesc.getModuleDescriptor().getModuleName(); return registerJ2EEChild(parentMBean, meta, AppClientModule.class, AppClientModuleImpl.class, moduleName); }