Examples of RuntimeDescriptor


Examples of com.sun.enterprise.deployment.runtime.RuntimeDescriptor

     * @param the attribute name
     * @param the attribute value
     * @return true if the attribute was processed
     */
    protected boolean setAttributeValue(XMLElement elementName, XMLElement attributeName, String value) {
  RuntimeDescriptor descriptor = (RuntimeDescriptor) getRuntimeDescriptor();
  if (descriptor==null) {
      throw new RuntimeException("Trying to set values on a null descriptor");
  }  
  if (attributeName.getQName().equals(RuntimeTagNames.NAME)) {
      descriptor.setAttributeValue(CacheHelper.NAME, value);
      return true;
  } else
  if (attributeName.getQName().equals(RuntimeTagNames.CLASS_NAME)) {
      descriptor.setAttributeValue(CacheHelper.CLASS_NAME, value);
      return true;
 
  return false;
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.RuntimeDescriptor

     * @param the attribute name
     * @param the attribute value
     * @return true if the attribute was processed
     */
    protected boolean setAttributeValue(XMLElement elementName, XMLElement attributeName, String value) {
        RuntimeDescriptor descriptor =
            (RuntimeDescriptor) getRuntimeDescriptor();
        if (descriptor==null) {
            throw new RuntimeException(
            "Trying to set values on a null descriptor");
        }
        if (attributeName.getQName().equals(RuntimeTagNames.NAME)) {
            descriptor.setAttributeValue(WebProperty.NAME, value);
            return true;
        } else if (attributeName.getQName().equals(RuntimeTagNames.VALUE)) {
            descriptor.setAttributeValue(WebProperty.VALUE, value);
            return true;
        }
        return false;
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.RuntimeDescriptor

     *
     * @param element the xml element
     * @param value it's associated value
     */
    public void setElementValue(XMLElement element, String value) {
  RuntimeDescriptor descriptor = getRuntimeDescriptor();
  if (descriptor==null) {
      throw new RuntimeException("Trying to set name or value on null property");
  }
  if (element.getQName().equals(RuntimeTagNames.LOCALE)) {
      descriptor.setAttributeValue(LocaleCharsetMap.LOCALE, value);
  } else
  if (element.getQName().equals(RuntimeTagNames.AGENT)) {
      descriptor.setAttributeValue(LocaleCharsetMap.AGENT, value);
  }
  if (element.getQName().equals(RuntimeTagNames.CHARSET)) {
      descriptor.setAttributeValue(LocaleCharsetMap.CHARSET, value);
  }
    }   
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.RuntimeDescriptor

     * @param the attribute value
     * @return true if the attribute was processed
     */
    protected boolean setAttributeValue(XMLElement elementName,
        XMLElement attributeName, String value) {
  RuntimeDescriptor descriptor =
            (RuntimeDescriptor) getRuntimeDescriptor();
  if (descriptor==null) {
      throw new RuntimeException(
                "Trying to set values on a null descriptor");
  }  
  if (attributeName.getQName().equals(RuntimeTagNames.EXTRA_CLASS_PATH)) {
      descriptor.setAttributeValue(ClassLoader.EXTRA_CLASS_PATH, value);
      return true;   
  } else if (attributeName.getQName().equals(RuntimeTagNames.DELEGATE)) {
      descriptor.setAttributeValue(ClassLoader.DELEGATE, value);
      return true;   
  } else if (attributeName.getQName().equals(
            RuntimeTagNames.DYNAMIC_RELOAD_INTERVAL)) {
      descriptor.setAttributeValue(ClassLoader.DYNAMIC_RELOAD_INTERVAL,
                value);
      return true;   
  }
  return false;
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.RuntimeDescriptor

     *
     * @param element the xml element
     * @param value it's associated value
     */
    public void setElementValue(XMLElement element, String value) {
  RuntimeDescriptor descriptor = getRuntimeDescriptor();
  if (descriptor==null) {
      throw new RuntimeException("Trying to set values on a null descriptor");
  }
  if (element.getQName().equals(RuntimeTagNames.PERSISTENCE_TYPE)) {
      descriptor.setAttributeValue(SessionManager.PERSISTENCE_TYPE, value);
  }
    }  
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.RuntimeDescriptor

     *
     * @param element the xml element
     * @param value it's associated value
     */
    public void setElementValue(XMLElement element, String value) {   
  RuntimeDescriptor descriptor = (RuntimeDescriptor) getDescriptor();
  if (descriptor==null) {
      throw new RuntimeException("Trying to set values on a null descriptor");
  }
  if (element.getQName().equals(RuntimeTagNames.USER_NAME)) {
      descriptor.setAttributeValue(Principal.USER_NAME, value);
  } else
  if (element.getQName().equals(RuntimeTagNames.PASSWORD)) {
      descriptor.setAttributeValue(Principal.PASSWORD, value);
  } else
  if (element.getQName().equals(RuntimeTagNames.CREDENTIAL)) {
      descriptor.setAttributeValue(Principal.CREDENTIAL, value);
  } else
  super.setElementValue(element, value);
   
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.RuntimeDescriptor

  if (getDispatchTable().containsKey(element.getQName())) {
      super.setElementValue(element, value);
  } else {
      Object o = getDescriptor();
      if (o instanceof RuntimeDescriptor) {
    RuntimeDescriptor rd = (RuntimeDescriptor) o;
    rd.setValue(element.getQName(), value);
      } else {
                DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.addDescriptorFailure",
                    new Object[]{element.getQName() , value });
            }
  }
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.RuntimeDescriptor

     * @param the attribute name
     * @param the attribute value
     * @return true if the attribute was processed
     */
    protected boolean setAttributeValue(XMLElement elementName, XMLElement attributeName, String value) {
  RuntimeDescriptor descriptor = (RuntimeDescriptor) getRuntimeDescriptor();
  if (descriptor==null) {
      throw new RuntimeException("Trying to set values on a null descriptor");
  }  
  if (attributeName.getQName().equals(RuntimeTagNames.MAX_ENTRIES)) {
      descriptor.setAttributeValue(Cache.MAX_ENTRIES, value);
      return true;   
  } else
  if (attributeName.getQName().equals(RuntimeTagNames.TIMEOUT_IN_SECONDS)) {
      descriptor.setAttributeValue(Cache.TIMEOUT_IN_SECONDS, value);
      return true;   
  } else
  if (attributeName.getQName().equals(RuntimeTagNames.ENABLED)) {
      descriptor.setAttributeValue(Cache.ENABLED, value);
      return true;   
  } else
  return false;
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.RuntimeDescriptor

  if (getDispatchTable().containsKey(element.getQName())) {
      super.setElementValue(element, value);
  } else {
      Object o = getDescriptor();
      if (o instanceof RuntimeDescriptor) {
    RuntimeDescriptor rd = (RuntimeDescriptor) o;
    rd.setValue(element.getQName(), value);
      } else {
                DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.addDescriptorFailure",
                    new Object[]{element.getQName() , value });
            }
  }
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.RuntimeDescriptor

     * @param the attribute name
     * @param the attribute value
     * @return true if the attribute was processed
     */
    protected boolean setAttributeValue(XMLElement elementName, XMLElement attributeName, String value) {
  RuntimeDescriptor descriptor = (RuntimeDescriptor) getRuntimeDescriptor();
  if (descriptor==null) {
      throw new RuntimeException("Trying to set values on a null descriptor");
  }  
  if (attributeName.getQName().equals(RuntimeTagNames.NAME)) {
      descriptor.setAttributeValue(CacheHelper.NAME, value);
      return true;
  } else
  if (attributeName.getQName().equals(RuntimeTagNames.CLASS_NAME)) {
      descriptor.setAttributeValue(CacheHelper.CLASS_NAME, value);
      return true;
 
  return false;
    }
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.