Package org.apache.geronimo.xbeans.javaee

Examples of org.apache.geronimo.xbeans.javaee.ServiceRefHandlerChainsType


        // Bind the XML handler chain file to an XMLBeans document
        XmlObject xml = XmlBeansUtil.parse(url, null);
        HandlerChainsDocument hcd = (HandlerChainsDocument) XmlBeansUtil.typedCopy(xml, HandlerChainsDocument.type);
        HandlerChainsType handlerChains = hcd.getHandlerChains();
       
        ServiceRefHandlerChainsType serviceRefHandlerChains = serviceRef.addNewHandlerChains();
        for (HandlerChainType handlerChain : handlerChains.getHandlerChainArray()) {
            ServiceRefHandlerChainType serviceRefHandlerChain = serviceRefHandlerChains.addNewHandlerChain();
            if (handlerChain.getPortNamePattern() != null) {
                serviceRefHandlerChain.setPortNamePattern(handlerChain.getPortNamePattern());
            }
            if (handlerChain.getServiceNamePattern() != null) {
                serviceRefHandlerChain.setServiceNamePattern(handlerChain.getServiceNamePattern());
View Full Code Here


            String referenceClassName = getStringValue(serviceRef.getServiceRefType());           
            serviceReferenceType = loadClass(referenceClassName, cl, "service reference");
        }
 
        if (serviceRef.isSetHandlerChains()) {                  
            ServiceRefHandlerChainsType handlerChains = serviceRef.getHandlerChains();
            for (ServiceRefHandlerChainType handlerChain : handlerChains.getHandlerChainArray()) {              
                for (ServiceRefHandlerType handler : handlerChain.getHandlerArray()) {
                    String handlerClassName = getStringValue(handler.getHandlerClass());
                    Class handlerClass = loadClass(handlerClassName, cl, "handler");
                    if (!Handler.class.isAssignableFrom(handlerClass)) {
                        throw new DeploymentException(handlerClassName + " handler class does not extend " + Handler.class.getName());
View Full Code Here

                    // Find the <service-ref> entry this handler chain belongs to and insert it
                    ServiceRefType[] serviceRefs = annotatedApp.getServiceRefArray();
                    boolean exists = false;
                    for ( ServiceRefType serviceRef : serviceRefs ) {
                        if ( serviceRef.getServiceRefName().getStringValue().trim().equals(serviceRefName) ) {
                            ServiceRefHandlerChainsType serviceRefHandlerChains = serviceRef.addNewHandlerChains();
                            for (HandlerChainType handlerChain : handlerChains.getHandlerChainArray()) {
                                ServiceRefHandlerChainType serviceRefHandlerChain = serviceRefHandlerChains.addNewHandlerChain();
                                if (handlerChain.getPortNamePattern() != null) {
                                    serviceRefHandlerChain.setPortNamePattern(handlerChain.getPortNamePattern());
                                }
                                if (handlerChain.getServiceNamePattern() != null) {
                                    serviceRefHandlerChain.setServiceNamePattern(handlerChain.getServiceNamePattern());
View Full Code Here

            String referenceClassName = getStringValue(serviceRef.getServiceRefType());           
            serviceReferenceType = loadClass(referenceClassName, cl, "service reference");
        }
 
        if (serviceRef.isSetHandlerChains()) {                  
            ServiceRefHandlerChainsType handlerChains = serviceRef.getHandlerChains();
            for (ServiceRefHandlerChainType handlerChain : handlerChains.getHandlerChainArray()) {              
                for (ServiceRefHandlerType handler : handlerChain.getHandlerArray()) {
                    String handlerClassName = getStringValue(handler.getHandlerClass());
                    Class handlerClass = loadClass(handlerClassName, cl, "handler");
                    if (!Handler.class.isAssignableFrom(handlerClass)) {
                        throw new DeploymentException(handlerClassName + " handler class does not extend " + Handler.class.getName());
View Full Code Here

                    // Find the <service-ref> entry this handler chain belongs to and insert it
                    ServiceRefType[] serviceRefs = annotatedApp.getServiceRefArray();
                    boolean exists = false;
                    for ( ServiceRefType serviceRef : serviceRefs ) {
                        if ( serviceRef.getServiceRefName().getStringValue().trim().equals(serviceRefName) ) {
                            ServiceRefHandlerChainsType serviceRefHandlerChains = serviceRef.addNewHandlerChains();
                            for (HandlerChainType handlerChain : handlerChains.getHandlerChainArray()) {
                                ServiceRefHandlerChainType serviceRefHandlerChain = serviceRefHandlerChains.addNewHandlerChain();
                                for ( PortComponentHandlerType handler : handlerChain.getHandlerArray()) {
                                    ServiceRefHandlerType serviceRefHandler = serviceRefHandlerChain.addNewHandler();
                                    serviceRefHandler.setHandlerName(handler.getHandlerName());
                                    serviceRefHandler.setHandlerClass(handler.getHandlerClass());
                                    if (handler.getDescriptionArray().length>0) {
View Full Code Here

            String referenceClassName = getStringValue(serviceRef.getServiceRefType());           
            serviceReferenceType = loadClass(referenceClassName, cl, "service reference");
        }
 
        if (serviceRef.isSetHandlerChains()) {                  
            ServiceRefHandlerChainsType handlerChains = serviceRef.getHandlerChains();
            for (ServiceRefHandlerChainType handlerChain : handlerChains.getHandlerChainArray()) {              
                for (ServiceRefHandlerType handler : handlerChain.getHandlerArray()) {
                    String handlerClassName = getStringValue(handler.getHandlerClass());
                    Class handlerClass = loadClass(handlerClassName, cl, "handler");
                    if (!Handler.class.isAssignableFrom(handlerClass)) {
                        throw new DeploymentException(handlerClassName + " handler class does not extend " + Handler.class.getName());
View Full Code Here

        // Bind the XML handler chain file to an XMLBeans document
        XmlObject xml = XmlBeansUtil.parse(url, null);
        HandlerChainsDocument hcd = (HandlerChainsDocument) XmlBeansUtil.typedCopy(xml, HandlerChainsDocument.type);
        HandlerChainsType handlerChains = hcd.getHandlerChains();
       
        ServiceRefHandlerChainsType serviceRefHandlerChains = serviceRef.addNewHandlerChains();
        for (HandlerChainType handlerChain : handlerChains.getHandlerChainArray()) {
            ServiceRefHandlerChainType serviceRefHandlerChain = serviceRefHandlerChains.addNewHandlerChain();
            if (handlerChain.getPortNamePattern() != null) {
                serviceRefHandlerChain.setPortNamePattern(handlerChain.getPortNamePattern());
            }
            if (handlerChain.getServiceNamePattern() != null) {
                serviceRefHandlerChain.setServiceNamePattern(handlerChain.getServiceNamePattern());
View Full Code Here

            String referenceClassName = getStringValue(serviceRef.getServiceRefType());
            serviceReferenceType = loadClass(referenceClassName, cl, "service reference");
        }
 
        if (serviceRef.isSetHandlerChains()) {                  
            ServiceRefHandlerChainsType handlerChains = serviceRef.getHandlerChains();
            for (ServiceRefHandlerChainType handlerChain : handlerChains.getHandlerChainArray()) {
                for (ServiceRefHandlerType handler : handlerChain.getHandlerArray()) {
                    String handlerClassName = getStringValue(handler.getHandlerClass());
                    Class handlerClass = loadClass(handlerClassName, cl, "handler");
                    if (!Handler.class.isAssignableFrom(handlerClass)) {
                        throw new DeploymentException(handlerClassName + " handler class does not extend " + Handler.class.getName());
View Full Code Here

        // Bind the XML handler chain file to an XMLBeans document
        XmlObject xml = XmlBeansUtil.parse(url, null);
        HandlerChainsDocument hcd = (HandlerChainsDocument) XmlBeansUtil.typedCopy(xml, HandlerChainsDocument.type);
        HandlerChainsType handlerChains = hcd.getHandlerChains();
       
        ServiceRefHandlerChainsType serviceRefHandlerChains = serviceRef.addNewHandlerChains();
        for (HandlerChainType handlerChain : handlerChains.getHandlerChainArray()) {
            ServiceRefHandlerChainType serviceRefHandlerChain = serviceRefHandlerChains.addNewHandlerChain();
            if (handlerChain.getPortNamePattern() != null) {
                serviceRefHandlerChain.setPortNamePattern(handlerChain.getPortNamePattern());
            }
            if (handlerChain.getServiceNamePattern() != null) {
                serviceRefHandlerChain.setServiceNamePattern(handlerChain.getServiceNamePattern());
View Full Code Here

TOP

Related Classes of org.apache.geronimo.xbeans.javaee.ServiceRefHandlerChainsType

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.