Package org.qi4j.api.value

Examples of org.qi4j.api.value.ValueSerialization


        // Use serialization-deserialization to make a copy of the prototype
        final Object value;
        try
        {
            // @TODO there is probably a more efficient way to do this
            ValueSerialization valueSerialization = currentModule.valueSerialization();
            String serialized = valueSerialization.serialize( prototype );
            value = valueSerialization.deserialize( valueModel.valueType(), serialized);
        }
        catch( ValueSerializationException e )
        {
            throw new IllegalStateException( "Could not serialize-copy Value", e );
        }
View Full Code Here

TOP

Related Classes of org.qi4j.api.value.ValueSerialization

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.