Package org.glassfish.deployment.common

Examples of org.glassfish.deployment.common.Descriptor


                        }
                    }
                }
                // we have the list of handler classes, we can now
                // push the context and call back annotation processing.                               
                Descriptor jndiContainer=null;
                if (serviceSideChain) {
                    WebServiceEndpoint endpoint = (WebServiceEndpoint) container;
                    if (DOLUtils.warType().equals(endpoint.getBundleDescriptor().getModuleType())) {
                        jndiContainer = endpoint.getBundleDescriptor();                
                    } else {
View Full Code Here


            // 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

     * 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

             }
         }

         if (isFromXml) {
             for (Descriptor desc: env.getResourceDescriptors(JavaEEResourceType.JMSCFDD)) {
                 Descriptor jmscfdDesc = getResourceDescriptor(JavaEEResourceType.JMSCFDD,desc.getName());
                 if (jmscfdDesc == null) {
                     if (env instanceof WebBundleDescriptor &&
                             ((WebBundleDescriptor)env).conflictJMSConnectionFactoryDefinition) {
                         throw new IllegalArgumentException(localStrings.getLocalString(
                                 "enterprise.deployment.exceptionconflictjmsconnectionfactorydefinition",
View Full Code Here

             }
         }

         if (isFromXml) {
             for (Descriptor desc: env.getResourceDescriptors(JavaEEResourceType.JMSDD)) {
                 Descriptor jmsddDesc = getResourceDescriptor(JavaEEResourceType.JMSDD,desc.getName());
                 if (jmsddDesc == null) {
                     if (env instanceof WebBundleDescriptor &&
                             ((WebBundleDescriptor)env).conflictJMSDestinationDefinition) {
                         throw new IllegalArgumentException(localStrings.getLocalString(
                                 "enterprise.deployment.exceptionconflictjmsdestinationdefinition",
View Full Code Here

    * Returns true if I have an ejb descriptor by that name.
    */
    @Override
    public boolean hasEjbByName(String name) {
    for (Iterator itr = getEjbs().iterator(); itr.hasNext();) {
        Descriptor next = (Descriptor) itr.next();
        if (next.getName().equals(name)) {
        return true;
        }
    }
    return false;
    }
View Full Code Here

    // In this case, insert application name before the symbol "#".
    // Because in the ConnectorRegistry, embedded RA is indexed by
    // "appName#raName"

    for (CommonResourceValidator rv : allResourceDescriptors.values()) {
      Descriptor desc = rv.getDescriptor();
      if (desc instanceof AbstractConnectorResourceDescriptor) {
        AbstractConnectorResourceDescriptor acrd = (AbstractConnectorResourceDescriptor) desc;
        if (acrd.getResourceAdapter() == null) {
          continue;
        }
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

    @Override
    public LifecycleCallbackDescriptor getDescriptor() {
       if (descriptor==null) {
            descriptor = new LifecycleCallbackDescriptor();
            Descriptor parentDesc =
                (Descriptor)getParentNode().getDescriptor();
            if (parentDesc instanceof EjbDescriptor) {
                EjbDescriptor ejbDesc = (EjbDescriptor)parentDesc;
                descriptor.setDefaultLifecycleCallbackClass(
                    ejbDesc.getEjbClassName());
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.