@Override public EnvironmentProperty getDescriptor() { if (envProp == null) envProp = new EnvironmentProperty(); return envProp; }
public void setJmsAcknowledgeMode(int acknowledgeMode) { String ackModeValue = (acknowledgeMode == AUTO_ACKNOWLEDGE) ? AUTO_ACK : DUPS_OK_ACK; EnvironmentProperty ackModeProp = new EnvironmentProperty(ACK_MODE_PROPERTY, ackModeValue, ""); putActivationConfigProperty(ackModeProp); }
public void setJmsAcknowledgeMode(int acknowledgeMode) { String ackModeValue = (acknowledgeMode == AUTO_ACKNOWLEDGE) ? AUTO_ACK : DUPS_OK_ACK; EnvironmentProperty ackModeProp = new EnvironmentProperty(ACK_MODE_PROPERTY, ackModeValue, ""); putActivationConfigProperty(ackModeProp); }
public void setJmsMessageSelector(String selector) { if( (selector == null) || (selector.trim().equals("")) ) { removeActivationConfigPropertyByName(MESSAGE_SELECTOR_PROPERTY); } else { EnvironmentProperty msgSelectorProp = new EnvironmentProperty(MESSAGE_SELECTOR_PROPERTY,selector,""); putActivationConfigProperty(msgSelectorProp); } }
public void setJmsMessageSelector(String selector) { if( (selector == null) || (selector.trim().equals("")) ) { removeActivationConfigPropertyByName(MESSAGE_SELECTOR_PROPERTY); } else { EnvironmentProperty msgSelectorProp = new EnvironmentProperty(MESSAGE_SELECTOR_PROPERTY,selector,""); putActivationConfigProperty(msgSelectorProp); } }
public void setHasDurableSubscription(boolean durable) { if( durable ) { EnvironmentProperty durableProp = new EnvironmentProperty(DURABLE_SUBSCRIPTION_PROPERTY, DURABLE, ""); putActivationConfigProperty(durableProp); } else { removeActivationConfigPropertyByName(DURABLE_SUBSCRIPTION_PROPERTY); } }
@Override public void setElementValue(XMLElement element, String value) { if (EjbTagNames.ACTIVATION_CONFIG_PROPERTY_NAME.equals (element.getQName())) { propertyName = value; } else if(EjbTagNames.ACTIVATION_CONFIG_PROPERTY_VALUE.equals (element.getQName())) { EnvironmentProperty prop = new EnvironmentProperty(propertyName, value, ""); descriptor.getActivationConfig().add(prop); propertyName = null; } }
public void setHasDurableSubscription(boolean durable) { if( durable ) { EnvironmentProperty durableProp = new EnvironmentProperty(DURABLE_SUBSCRIPTION_PROPERTY, DURABLE, ""); putActivationConfigProperty(durableProp); } else { removeActivationConfigPropertyByName(DURABLE_SUBSCRIPTION_PROPERTY); } }
@Override protected ContextParameter newDescriptorItem(ContextParam customization) { ContextParameter newItem = new EnvironmentProperty( customization.getParamName(), customization.getParamValue(), "" /* description */); return newItem; }
/** * receives notiification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { if (EjbTagNames.ACTIVATION_CONFIG_PROPERTY_NAME.equals (element.getQName())) { propertyName = value; } else if(EjbTagNames.ACTIVATION_CONFIG_PROPERTY_VALUE.equals (element.getQName())) { EnvironmentProperty prop = new EnvironmentProperty(propertyName, value, ""); descriptor.getActivationConfig().add(prop); propertyName = null; } }
envEntries.add(envEntry); } else { envEntry = new EnvironmentProperty(); envEntries.add(envEntry); rcContexts[i].addEnvEntryDescriptor(envEntry);
@Override public void setElementValue(XMLElement element, String value) { if (RuntimeTagNames.ACTIVATION_CONFIG_PROPERTY_NAME.equals (element.getQName())) { propertyName = value; } else if(RuntimeTagNames.ACTIVATION_CONFIG_PROPERTY_VALUE.equals (element.getQName())) { EnvironmentProperty prop = new EnvironmentProperty(propertyName, value, ""); descriptor.getActivationConfig().add(prop); propertyName = null; } else super.setElementValue(element, value); }
envEntries.add(envEntry); } else { envEntry = new EnvironmentProperty(); envEntries.add(envEntry); rcContexts[i].addEnvEntryDescriptor(envEntry);
private InitializationParameter getDefaultServletInitParam( WebComponentDescriptor defaultServletDesc, String name, boolean create) { if (defaultServletDesc == null) { throw new RuntimeException("Default servlet is missing in web descriptors."); } InitializationParameter initParam = defaultServletDesc.getInitializationParameterByName(name); if (initParam == null && create) { initParam = new EnvironmentProperty(); defaultServletDesc.addInitializationParameter(initParam); initParam.setName(name); } return initParam; } }
/** * receives notiification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { if (RuntimeTagNames.ACTIVATION_CONFIG_PROPERTY_NAME.equals (element.getQName())) { propertyName = value; } else if(RuntimeTagNames.ACTIVATION_CONFIG_PROPERTY_VALUE.equals (element.getQName())) { EnvironmentProperty prop = new EnvironmentProperty(propertyName, value, ""); descriptor.getActivationConfig().add(prop); propertyName = null; } else super.setElementValue(element, value); }
private void setJspInitParameter(String property, String value) { WebComponentDescriptor jspDescriptor = getJspDescriptor( (WebBundleDescriptor)getParentNode().getDescriptor()); if (jspDescriptor != null) { // The description in the envior property is used as special // marker to indicate this jsp init is from weblogic.xml jspDescriptor.addInitializationParameter( new EnvironmentProperty(property, value, JSP_DESC)); } }
@Override protected EnvironmentEntry newDescriptorItem(EnvEntry customization) { customization.validateValue(); EnvironmentEntry newItem = new EnvironmentProperty( customization.getEnvEntryName(), customization.getEnvEntryValue(), customization.getDescription(), customization.getEnvEntryType()); /* * Invoke setValue which records that the value has been set. * Otherwise naming does not bind the name. */ newItem.setValue(customization.getEnvEntryValue()); return newItem; }
while (i.hasNext()) { ApplicationParameter appParam = i.next(); contextParam = new EnvironmentProperty( appParam.getName(), appParam.getValue(), appParam.getDescription()); envEntry = new EnvironmentProperty( envs[i].getName(), envs[i].getValue(), envs[i].getDescription(), envs[i].getType());
EnvironmentProperty envProp = new EnvironmentProperty( acProp.propertyName(), acProp.propertyValue(), "");
EnvironmentProperty envProp = new EnvironmentProperty( acProp.propertyName(), acProp.propertyValue(), "");