Package com.sun.enterprise.deployment.node

Examples of com.sun.enterprise.deployment.node.MethodNode


        CheckpointAtEndOfMethodDescriptor checkpointMethodDescriptor) {
        Node checkpointMethodNode = super.writeDescriptor(parent, nodeName,
            checkpointMethodDescriptor);
        ArrayList methodDescs = checkpointMethodDescriptor.getConvertedMethodDescs();
        if (!methodDescs.isEmpty()) {
            MethodNode methodNode = new MethodNode();
            for (Iterator<MethodDescriptor> it = methodDescs.iterator(); it.hasNext();) {
                // do not write out ejb-name element for the method
                methodNode.writeDescriptor(checkpointMethodNode,
                    RuntimeTagNames.METHOD, it.next(), null);
            }
        }
        return checkpointMethodNode;
    }
View Full Code Here


  Node prefetchDisabledNode = super.writeDescriptor(parent, nodeName,
            prefetchDisabledDescriptor);
        ArrayList methodDescs =
            prefetchDisabledDescriptor.getConvertedMethodDescs();
        if (!methodDescs.isEmpty()) {
            MethodNode methodNode = new MethodNode();
            for (Iterator methodIterator = methodDescs.iterator();
                methodIterator.hasNext();) {
                MethodDescriptor methodDesc =
                    (MethodDescriptor) methodIterator.next();
                methodNode.writeQueryMethodDescriptor(prefetchDisabledNode,
                    RuntimeTagNames.QUERY_METHOD, methodDesc);
            }
        }

  return prefetchDisabledNode;
View Full Code Here

        FlushAtEndOfMethodDescriptor flushMethodDescriptor) {   
  Node flushMethodNode = super.writeDescriptor(parent, nodeName,
            flushMethodDescriptor);
        ArrayList methodDescs = flushMethodDescriptor.getConvertedMethodDescs();
        if (!methodDescs.isEmpty()) {
            MethodNode methodNode = new MethodNode();
            for (Iterator methodIterator = methodDescs.iterator();
                methodIterator.hasNext();) {
                MethodDescriptor methodDesc =
                    (MethodDescriptor) methodIterator.next();
                // do not write out ejb-name element for the method
                methodNode.writeDescriptor(flushMethodNode,
                    RuntimeTagNames.METHOD, methodDesc, null);
            }
        }

        return flushMethodNode;
View Full Code Here

            }
        } catch (Exception e) {
            DOLUtils.getDefaultLogger().log(Level.WARNING, e.getMessage(), e);
        }

        MethodNode methodNode = new MethodNode();

        methodNode.writeJavaMethodDescriptor(timerNode, EjbTagNames.TIMEOUT_METHOD,
                 desc.getTimeoutMethod());
       
        appendTextChild(timerNode, EjbTagNames.TIMER_PERSISTENT,
            Boolean.toString(desc.getPersistent()));
View Full Code Here

                            next.getInterceptorClassName());
        }

        if( method != null ) {
           
            MethodNode methodNode = new MethodNode();

            // Write out method description. void methods will be written
            // out using an empty method-params element so they will not
            // be interpreted as overloaded when processed.
            methodNode.writeJavaMethodDescriptor
                (bindingNode, EjbTagNames.INTERCEPTOR_BUSINESS_METHOD, method,
                 true);

        }
View Full Code Here

                        ejbDesc.getName());

        appendTextChild(bindingNode, EjbTagNames.EXCLUDE_CLASS_INTERCEPTORS,
                        "true");

        MethodNode methodNode = new MethodNode();

        // Write out method description. void methods will be written
        // out using an empty method-params element so they will not
        // be interpreted as overloaded when processed.
        methodNode.writeJavaMethodDescriptor
            (bindingNode, EjbTagNames.INTERCEPTOR_BUSINESS_METHOD, method,
             true);
                                            
    }
View Full Code Here

    }

    @Override
    public Node writeDescriptor(Node parent, String nodeName, EjbInitInfo initMethod) {
        Node initNode = appendChild(parent, nodeName);       
        MethodNode methodNode = new MethodNode();

        methodNode.writeJavaMethodDescriptor
            (initNode, EjbTagNames.INIT_CREATE_METHOD,
             initMethod.getCreateMethod());

        methodNode.writeJavaMethodDescriptor
            (initNode, EjbTagNames.INIT_BEAN_METHOD,
             initMethod.getBeanMethod());

        return initNode;
    }
View Full Code Here

        Node queryNode = super.writeDescriptor(parent, nodeName, descriptor);

        writeLocalizedDescriptions(queryNode, descriptor);
               
        // query-method
        MethodNode methodNode = new MethodNode();
        methodNode.writeQueryMethodDescriptor(queryNode, EjbTagNames.QUERY_METHOD,
                                                                         descriptor.getQueryMethodDescriptor());
       
        if (descriptor.getHasRemoteReturnTypeMapping()) {           
            appendTextChild(queryNode, EjbTagNames.QUERY_RESULT_TYPE_MAPPING,
                                                    EjbTagNames.QUERY_REMOTE_TYPE_MAPPING);    
View Full Code Here

                }       
            }
        }
               
        MethodDescriptor[] methods = descriptor.getMethods();
        MethodNode mn = new MethodNode();
        for (int i=0;i<methods.length;i++) {           
            String ejbName = ejb.getName();
            mn.writeDescriptor(subNode, EjbTagNames.METHOD, methods[i], ejbName);
        }           
        return subNode;
    }
View Full Code Here

    @Override
    public Node writeDescriptor(Node parent, String nodeName, ConcurrentMethodDescriptor desc) {
        Node concurrentNode = super.writeDescriptor(parent, nodeName, descriptor);

        MethodNode methodNode = new MethodNode();

        methodNode.writeJavaMethodDescriptor(concurrentNode, EjbTagNames.METHOD,
                desc.getConcurrentMethod());

        if( desc.hasLockMetadata() ) {
            String lockType = desc.isWriteLocked() ? "Write" : "Read";
            appendTextChild(concurrentNode, EjbTagNames.CONCURRENT_LOCK, lockType);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.node.MethodNode

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.