Package org.apache.axis2.databinding.metadata

Examples of org.apache.axis2.databinding.metadata.TypeDesc


        OMElement el = builder.getDocumentElement();
        XMLStreamReader omReader = el.getXMLStreamReaderWithoutCaching();
        omReader.next();
        DeserializationContext context = new DeserializationContext();

        TypeDesc typeDesc = BeanManager.getTypeDesc(TestBean.class);
        BeanDeserializer dser = new BeanDeserializer(typeDesc);

        dser.setTarget(new DeserializationTarget() {
            public void setValue(Object value) {
                assertTrue(value instanceof TestBean);
View Full Code Here


    public static class TestBean {
        static TypeDesc typeDesc;

        public static TypeDesc getTypeDesc() {
            if (typeDesc == null) {
                typeDesc = new TypeDesc();
                typeDesc.setJavaClass(ArrayTest.class);
                ElementDesc desc = new ElementDesc();
                desc.setFieldName("collection");
                desc.setQName(new QName("item"));
                desc.setMaxOccurs(-1);
View Full Code Here

    public static class TestBean {
        static TypeDesc typeDesc;

        public static TypeDesc getTypeDesc() {
            if (typeDesc == null) {
                typeDesc = new TypeDesc();
                typeDesc.setJavaClass(ArrayTest.class);
                ElementDesc desc = new ElementDesc();
                desc.setFieldName("collection");
                desc.setQName(new QName("item"));
                desc.setMaxOccurs(-1);
View Full Code Here

    }

    public Object deserializeToClass(XMLStreamReader reader,
                                     Class javaClass) throws Exception {

        TypeDesc typeDesc = BeanManager.getTypeDesc(javaClass);
        Deserializer dser = new BeanDeserializer(typeDesc);

        // Now make sure there's somewhere to put the deserialized object
        SimpleTarget target = new SimpleTarget();
        dser.setTarget(target);
View Full Code Here

    }

    public Object deserializeToClass(XMLStreamReader reader,
                                     Class javaClass) throws Exception {

        TypeDesc typeDesc = BeanManager.getTypeDesc(javaClass);
        Deserializer dser = new BeanDeserializer(typeDesc);

        // Now make sure there's somewhere to put the deserialized object
        SimpleTarget target = new SimpleTarget();
        dser.setTarget(target);
View Full Code Here

    public static class TestBean {
        static TypeDesc typeDesc;

        public static TypeDesc getTypeDesc() {
            if (typeDesc == null) {
                typeDesc = new TypeDesc();
                typeDesc.setJavaClass(ArrayTest.class);
                ElementDesc desc = new ElementDesc();
                desc.setFieldName("collection");
                desc.setQName(new QName("item"));
                desc.setMaxOccurs(-1);
View Full Code Here

            deploymentFileData.setClassLoader(isDirectory, getClass().getClassLoader(),
                    (File) cfgCtx.getAxisConfiguration().getParameterValue(
                            Constants.Configuration.ARTIFACTS_TEMP_DIR),
                    cfgCtx.getAxisConfiguration().isChildFirstClassLoading());

            DeploymentClassLoader urlCl
                = (DeploymentClassLoader)deploymentFileData.getClassLoader();
            Thread.currentThread().setContextClassLoader(urlCl);

            // StartupFactory registration
            for (StartupFactory factory : getProviders(StartupFactory.class, urlCl)) {
View Full Code Here

    private void handleException(String message, Exception e) throws DeploymentException {
        if (log.isDebugEnabled()) {
            log.debug(message, e);
        }
        throw new DeploymentException(message, e);
    }
View Full Code Here

    private void handleException(String message, Throwable t) throws DeploymentException {
        if (log.isDebugEnabled()) {
            log.debug(message, t);
        }
        throw new DeploymentException(message, t);
    }
View Full Code Here

            }
        } else {
            String msg = "Artifact representing the filename "
                    + fileName + " is not deployed on Synapse";
            log.error(msg);
            throw new DeploymentException(msg);
        }

        if (log.isDebugEnabled()) {
            log.debug("UnDeployment of the synapse artifact from file : "
                    + fileName + " : COMPLETED");
View Full Code Here

TOP

Related Classes of org.apache.axis2.databinding.metadata.TypeDesc

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.