Package org.milyn.javabean.binding

Examples of org.milyn.javabean.binding.BeanSerializationException


        assertInitialized();

        Class<? extends Object> objectClass = object.getClass();
        RootNodeSerializer rootNodeSerializer = serializers.get(objectClass);
        if(rootNodeSerializer == null) {
            throw new BeanSerializationException("No serializer for Java type '" + objectClass.getName() + "'.");
        }
        if(!omitXMLDeclaration) {
            outputWriter.write("<?xml version=\"1.0\"?>\n");
        }
View Full Code Here


    public Object get(final T contextObject) throws BeanSerializationException {
        try {
            return getterMethod.invoke(contextObject);
        } catch (IllegalArgumentException e) {
            throw new BeanSerializationException("Error invoking bean getter method '" + getterMethod.getName() + "' on bean type '" + contextObject.getClass().getName() + "'.", e);
        } catch (IllegalAccessException e) {
            throw new BeanSerializationException("Error invoking bean getter method '" + getterMethod.getName() + "' on bean type '" + contextObject.getClass().getName() + "'.", e);
        } catch (InvocationTargetException e) {
            throw new BeanSerializationException("Error invoking bean getter method '" + getterMethod.getName() + "' on bean type '" + contextObject.getClass().getName() + "'.", e.getCause());
        }
    }
View Full Code Here

TOP

Related Classes of org.milyn.javabean.binding.BeanSerializationException

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.