Package com.sun.enterprise.deployment

Examples of com.sun.enterprise.deployment.LicenseDescriptor


     * @param parent node for the DOM tree
     * @param the descriptor to write
     * @return the DOM tree top node
     */   
    public Node writeDescriptor(Node parent, ConnectorDescriptor descriptor) {
        LicenseDescriptor licenseDesc = descriptor.getLicenseDescriptor();
        if (licenseDesc != null) {
            Node licenseNode = appendChild(parent,
                ConnectorTagNames.LICENSE);
            writeLocalizedDescriptions(licenseNode, licenseDesc);       
            appendTextChild(licenseNode, ConnectorTagNames.LICENSE_REQUIRED,
                licenseDesc.getLicenseRequiredValue())
        }
        return parent;
    }
View Full Code Here


            // We will be able to detect whether license description is specified in annotation
            // or not, but "license required" can't be detected. Hence taking the annotated values *always*
            // if DD does not have an equivalent
            String[] licenseDescriptor = connector.licenseDescription();
            boolean licenseRequired = connector.licenseRequired();
            LicenseDescriptor ld = new LicenseDescriptor();
            ld.setDescription(convertStringArrayToStringBuffer(licenseDescriptor));
            ld.setLicenseRequired(licenseRequired);
            desc.setLicenseDescriptor(ld);
        }

        AuthenticationMechanism[] auths = connector.authMechanisms();
        if (auths != null && auths.length > 0) {
View Full Code Here

     * @param parent node for the DOM tree
     * @param the descriptor to write
     * @return the DOM tree top node
     */   
    public Node writeDescriptor(Node parent, ConnectorDescriptor descriptor) {
        LicenseDescriptor licenseDesc = descriptor.getLicenseDescriptor();
        if (licenseDesc != null) {
            Node licenseNode = appendChild(parent,
                ConnectorTagNames.LICENSE);
            writeLocalizedDescriptions(licenseNode, licenseDesc);       
            appendTextChild(licenseNode, ConnectorTagNames.LICENSE_REQUIRED,
                licenseDesc.getLicenseRequiredValue())
        }
        return parent;
    }
View Full Code Here

            // We will be able to detect whether license description is specified in annotation
            // or not, but "license required" can't be detected. Hence taking the annotated values *always*
            // if DD does not have an equivalent
            String[] licenseDescriptor = connector.licenseDescription();
            boolean licenseRequired = connector.licenseRequired();
            LicenseDescriptor ld = new LicenseDescriptor();
            ld.setDescription(convertStringArrayToStringBuffer(licenseDescriptor));
            ld.setLicenseRequired(licenseRequired);
            desc.setLicenseDescriptor(ld);
        }

        AuthenticationMechanism[] auths = connector.authMechanisms();
        if (auths != null && auths.length > 0) {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.LicenseDescriptor

Copyright © 2018 www.massapicom. 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.