Package org.glassfish.deployment.common

Examples of org.glassfish.deployment.common.Descriptor


            // Make jndi name flat so it won't result in the creation of
            // a bunch of sub-contexts.
            String flattedJndiName = ejbEnv.getJndiName().replace('/', '.');

            EjbBundleDescriptor ejbBundle = ejbEnv.getEjbBundleDescriptor();
            Descriptor d = ejbBundle.getModuleDescriptor().getDescriptor();
            // if this EJB is in a war file, use the same component ID
            // as the web bundle, because they share the same JNDI namespace
            if (d instanceof WebBundleDescriptor) {
                // copy of code below
                WebBundleDescriptor webEnv = (WebBundleDescriptor) d;
View Full Code Here


        }
        return null;
    }

    protected Descriptor getResourceDescriptor(JavaEEResourceType type, String name) {
        Descriptor descriptor = null;
        switch (type) {
            case DSD:
                descriptor = commonResourceFunctionality.getDataSourceDefinitionDescriptor(name);
                break;
            case MSD:
View Full Code Here

     * @param scope
     * @return
     */
    private boolean findExistingDescriptors(Set<Descriptor> descriptors, String scope) {
        for (Iterator itr = descriptors.iterator(); itr.hasNext(); ) {
            Descriptor descriptor = (Descriptor) itr.next();
            if (isExistsDescriptor(descriptor.getName(), descriptor, scope)) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

        if (descriptor != null) {

            CommonResourceValidator commonResourceValidator = allResourceDescriptors.get(name);
            if (commonResourceValidator != null) {
                Descriptor existingDescriptor = commonResourceValidator.getDescriptor();
                if (descriptor instanceof MailSessionDescriptor && existingDescriptor instanceof MailSessionDescriptor) {
                    if (!descriptor.equals(existingDescriptor)) {
                        allUniqueResource = false;
                        return true;
                    } else {
View Full Code Here

        }
        return null;
    }

    protected Descriptor getResourceDescriptor(JavaEEResourceType type, String name) {
        Descriptor descriptor = null;
        switch (type) {
            case DSD:
                descriptor = commonResourceFunctionality.getDataSourceDefinitionDescriptor(name);
                break;
            case MSD:
View Full Code Here

        if (descriptor != null) {

            CommonResourceValidator commonResourceValidator = allResourceDescriptors.get(name);
            if (commonResourceValidator != null) {
                Descriptor existingDescriptor = commonResourceValidator.getDescriptor();
                if (descriptor instanceof MailSessionDescriptor && existingDescriptor instanceof MailSessionDescriptor) {
                    if (!descriptor.equals(existingDescriptor)) {
                        allUniqueResource = false;
                        return true;
                    } else {
View Full Code Here

    public Set<Descriptor> getAllResourcesDescriptors() {
        return allResourceDescriptors;
    }

    protected Descriptor getAllResourcesDescriptors(String name) {
        Descriptor descriptor = null;
        for (Descriptor thiDescriptor : this.getAllResourcesDescriptors()) {
            if (thiDescriptor.getName().equals(name)) {
                descriptor = thiDescriptor;
                break;
            }
View Full Code Here

        return descriptor;
    }

    private boolean foundDescriptor(Descriptor reference) {

        Descriptor descriptor = getAllResourcesDescriptors(reference.getName());
        if (descriptor != null) {
            return true;
        }
        return false;
    }
View Full Code Here

        if (descriptor != null) {

            CommonResourceValidator commonResourceValidator = allResourceDescriptors.get(name);
            if (commonResourceValidator != null) {
                Descriptor existingDescriptor = commonResourceValidator.getDescriptor();
                if (descriptor instanceof MailSessionDescriptor && existingDescriptor instanceof MailSessionDescriptor) {
                    if (!descriptor.equals(existingDescriptor)) {
                        allUniqueResource = false;
                        return true;
                    } else {
View Full Code Here

     * notify of a new prefix mapping used in this document
     */
    public void addPrefixMapping(String prefix, String uri) {
        Object o = getDescriptor();
        if (o instanceof Descriptor) {
            Descriptor descriptor = (Descriptor) o;
            descriptor.addPrefixMapping(prefix, uri);
        }
    }       
View Full Code Here

TOP

Related Classes of org.glassfish.deployment.common.Descriptor

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.