Package org.auraframework.util.json.Json

Examples of org.auraframework.util.json.Json.Serialization


import org.auraframework.util.json.Json.Serialization.ReferenceScope;

public class DefaultJsonSerializer implements JsonSerializer<Object> {
    @Override
    public ReferenceType getReferenceType(Object value) {
        Serialization serialization = value.getClass().getAnnotation(Serialization.class);
        if (serialization != null) {
            return serialization.referenceType();
        }
        return ReferenceType.NONE;
    }
View Full Code Here


        return ReferenceType.NONE;
    }

    @Override
    public ReferenceScope getReferenceScope(Object value) {
        Serialization serialization = value.getClass().getAnnotation(Serialization.class);
        if (serialization != null) {
            return serialization.referenceScope();
        }
        return ReferenceScope.ACTION;
    }
View Full Code Here

     * temp class until all the json serializable stuff moves out of the defs
     */
    public static class OldSerializer implements JsonSerializer<JsonSerializable> {
        @Override
        public final ReferenceType getReferenceType(JsonSerializable value) {
            Serialization serialization = value.getClass().getAnnotation(Serialization.class);
            if (serialization != null) {
                return serialization.referenceType();
            }
            return ReferenceType.NONE;
        }
View Full Code Here

            return ReferenceType.NONE;
        }

        @Override
        public final ReferenceScope getReferenceScope(JsonSerializable value) {
            Serialization serialization = value.getClass().getAnnotation(Serialization.class);
            if (serialization != null) {
                return serialization.referenceScope();
            }
            return ReferenceScope.ACTION;
        }
View Full Code Here

TOP

Related Classes of org.auraframework.util.json.Json.Serialization

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.