Examples of PrincipalNameDescriptor


Examples of com.sun.enterprise.deployment.runtime.common.PrincipalNameDescriptor

     *                                              
     * @param element the xml element               
     * @param value it's associated value
     */   
    public void setElementValue(XMLElement element, String value) {  
        PrincipalNameDescriptor principal =
                (PrincipalNameDescriptor) getDescriptor();
        if (RuntimeTagNames.PRINCIPAL_NAME.equals(element.getQName())) {
            principal.setName(value);
        } else super.setElementValue(element, value);
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.common.PrincipalNameDescriptor

     * @return true if the attribute was processed
     */
    protected boolean setAttributeValue(
            XMLElement element, XMLElement attribute, String value) {

        PrincipalNameDescriptor principal =
                            (PrincipalNameDescriptor) getDescriptor();
        if (attribute.getQName().equals(RuntimeTagNames.CLASS_NAME)) {
            principal.setClassName(value);
            return true;
        }
        return false;
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.common.PrincipalNameDescriptor

     *                                              
     * @param element the xml element               
     * @param value it's associated value
     */   
    public void setElementValue(XMLElement element, String value) {  
        PrincipalNameDescriptor principal =
                (PrincipalNameDescriptor) getDescriptor();
        if (RuntimeTagNames.PRINCIPAL_NAME.equals(element.getQName())) {
            principal.setName(value);
            Object rootDesc = getParentNode().getParentNode().getDescriptor();
            if (rootDesc instanceof RootDeploymentDescriptor) {
                principal.setClassLoader(((RootDeploymentDescriptor)rootDesc).getClassLoader());
            }
        } else super.setElementValue(element, value);
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.common.PrincipalNameDescriptor

     * @return true if the attribute was processed
     */
    protected boolean setAttributeValue(
            XMLElement element, XMLElement attribute, String value) {

        PrincipalNameDescriptor principal =
                            (PrincipalNameDescriptor) getDescriptor();
        if (attribute.getQName().equals(RuntimeTagNames.CLASS_NAME)) {
            principal.setClassName(value);
            return true;
        }
        return false;
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.common.PrincipalNameDescriptor

*/
public class PrincipalNameNode  extends RuntimeDescriptorNode {

    @Override
    protected PrincipalNameDescriptor createDescriptor() {
        return new PrincipalNameDescriptor();
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.common.PrincipalNameDescriptor

     *                                              
     * @param element the xml element               
     * @param value it's associated value
     */   
    public void setElementValue(XMLElement element, String value) {  
        PrincipalNameDescriptor principal =
                (PrincipalNameDescriptor) getDescriptor();
        if (RuntimeTagNames.PRINCIPAL_NAME.equals(element.getQName())) {
            principal.setName(value);
            Object rootDesc = getParentNode().getParentNode().getDescriptor();
            if (rootDesc instanceof RootDeploymentDescriptor) {
                principal.setClassLoader(((RootDeploymentDescriptor)rootDesc).getClassLoader());
            }
        } else super.setElementValue(element, value);
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.common.PrincipalNameDescriptor

     * @return true if the attribute was processed
     */
    protected boolean setAttributeValue(
            XMLElement element, XMLElement attribute, String value) {

        PrincipalNameDescriptor principal =
                            (PrincipalNameDescriptor) getDescriptor();
        if (attribute.getQName().equals(RuntimeTagNames.CLASS_NAME)) {
            principal.setClassName(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.