Package org.apache.openejb.jee

Examples of org.apache.openejb.jee.ServiceEndpointInterfaceMapping$JAXB


        try {
            final XMLStreamReader filter = Sxc.prepareReader(inputStream);
            synchronized (Adapters.handlerChainsStringQNameAdapterAdapter) { // few threads on it so synchronized > lock
                Adapters.handlerChainsStringQNameAdapterAdapter.setNamespaceContext(filter.getNamespaceContext());
                try {
                    return Sxc.unmarhsal(new HandlerChains$JAXB(), new XoXMLStreamReaderImpl(filter));
                } finally {
                    Adapters.handlerChainsStringQNameAdapterAdapter.setNamespaceContext(null);
                }
            }
        } finally {
View Full Code Here


            IO.close(inputStream);
        }
    }

    public static void marshal(final HandlerChains handlerChains, final OutputStream outputStream) throws Exception {
        Sxc.marshal(new HandlerChains$JAXB(), handlerChains, new StreamResult(outputStream));
    }
View Full Code Here

* @version $Rev$ $Date$
*/
public class HandlerChainsXml {

    public static HandlerChains unmarshal(final InputStream inputStream) throws Exception {
        return Sxc.unmarshalJavaee(new HandlerChains$JAXB(), inputStream);
    }
View Full Code Here

        try {
            final XMLStreamReader filter = Sxc.prepareReader(inputStream);
            synchronized (Adapters.handlerChainsStringQNameAdapterAdapter) { // few threads on it so synchronized > lock
                Adapters.handlerChainsStringQNameAdapterAdapter.setNamespaceContext(filter.getNamespaceContext());
                try {
                    return Sxc.unmarhsal(new HandlerChains$JAXB(), new XoXMLStreamReaderImpl(filter));
                } finally {
                    Adapters.handlerChainsStringQNameAdapterAdapter.setNamespaceContext(null);
                }
            }
        } finally {
View Full Code Here

            IO.close(inputStream);
        }
    }

    public static void marshal(final HandlerChains handlerChains, final OutputStream outputStream) throws Exception {
        Sxc.marshal(new HandlerChains$JAXB(), handlerChains, new StreamResult(outputStream));
    }
View Full Code Here

* @version $Rev$ $Date$
*/
public class HandlerChainsXml {

    public static HandlerChains unmarshal(InputStream inputStream) throws Exception {
        return Sxc.unmarshalJavaee(new HandlerChains$JAXB(), inputStream);
    }
View Full Code Here

        try {
            final XMLStreamReader filter = Sxc.prepareReader(inputStream);
            synchronized (Adapters.handlerChainsStringQNameAdapterAdapter) { // few threads on it so synchronized > lock
                Adapters.handlerChainsStringQNameAdapterAdapter.setNamespaceContext(filter.getNamespaceContext());
                try {
                    return Sxc.unmarhsal(new HandlerChains$JAXB(), new XoXMLStreamReaderImpl(filter));
                } finally {
                    Adapters.handlerChainsStringQNameAdapterAdapter.setNamespaceContext(null);
                }
            }
        } finally {
View Full Code Here

            IO.close(inputStream);
        }
    }

    public static void marshal(HandlerChains handlerChains, OutputStream outputStream) throws Exception {
        Sxc.marshal(new HandlerChains$JAXB(), handlerChains, new StreamResult(outputStream));
    }
View Full Code Here

    private void doHeavyweightMapping(QName serviceName, PortType portType, List<ServiceEndpointInterfaceMapping> endpointMappings, Bundle bundle, List operations, Binding binding, Style portStyle, SOAPConstants soapVersion, Map exceptionMap, SchemaInfoBuilder schemaInfoBuilder, JavaWsdlMapping mapping, OperationInfo[] operationInfos, String portName, URL location, List handlerInfos, Map seiPortNameToFactoryMap, Map seiClassNameToFactoryMap, String credentialsName) throws DeploymentException {
        Class<?> serviceEndpointInterface;
        SEIFactory seiFactory;
        //complete jaxrpc mapping file supplied
        QName portTypeQName = portType.getQName();
        ServiceEndpointInterfaceMapping endpointMapping = WSDescriptorParser.getServiceEndpointInterfaceMapping(endpointMappings, portTypeQName);
        String fqcn = endpointMapping.getServiceEndpointInterface();
        try {
            serviceEndpointInterface = bundle.loadClass(fqcn);
        } catch (ClassNotFoundException e) {
            throw new DeploymentException("Could not load service endpoint interface", e);
        }
//        Class enhancedServiceEndpointClass = enhanceServiceEndpointInterface(serviceEndpointInterface, context, module, classLoader);

        Collection<OperationDesc> operationDescs = new ArrayList<OperationDesc>();
        List<ServiceEndpointMethodMapping> methodMappings = endpointMapping.getServiceEndpointMethodMapping();
        int i = 0;
        Set wrapperElementQNames = new HashSet();
        List<JavaXmlTypeMapping> javaXmlTypeMappings = mapping.getJavaXmlTypeMapping();
        boolean hasEncoded = false;
        for (Iterator ops = operations.iterator(); ops.hasNext();) {
View Full Code Here

    private void doHeavyweightMapping(QName serviceName, PortType portType, List<ServiceEndpointInterfaceMapping> endpointMappings, Bundle bundle, List operations, Binding binding, Style portStyle, SOAPConstants soapVersion, Map exceptionMap, SchemaInfoBuilder schemaInfoBuilder, JavaWsdlMapping mapping, OperationInfo[] operationInfos, String portName, URL location, List handlerInfos, Map seiPortNameToFactoryMap, Map seiClassNameToFactoryMap, String credentialsName) throws DeploymentException {
        Class<?> serviceEndpointInterface;
        SEIFactory seiFactory;
        //complete jaxrpc mapping file supplied
        QName portTypeQName = portType.getQName();
        ServiceEndpointInterfaceMapping endpointMapping = WSDescriptorParser.getServiceEndpointInterfaceMapping(endpointMappings, portTypeQName);
        String fqcn = endpointMapping.getServiceEndpointInterface();
        try {
            serviceEndpointInterface = bundle.loadClass(fqcn);
        } catch (ClassNotFoundException e) {
            throw new DeploymentException("Could not load service endpoint interface", e);
        }
//        Class enhancedServiceEndpointClass = enhanceServiceEndpointInterface(serviceEndpointInterface, context, module, classLoader);

        Collection<OperationDesc> operationDescs = new ArrayList<OperationDesc>();
        List<ServiceEndpointMethodMapping> methodMappings = endpointMapping.getServiceEndpointMethodMapping();
        int i = 0;
        Set wrapperElementQNames = new HashSet();
        List<JavaXmlTypeMapping> javaXmlTypeMappings = mapping.getJavaXmlTypeMapping();
        boolean hasEncoded = false;
        for (Iterator ops = operations.iterator(); ops.hasNext();) {
View Full Code Here

TOP

Related Classes of org.apache.openejb.jee.ServiceEndpointInterfaceMapping$JAXB

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.