Package org.codehaus.preon.el

Examples of org.codehaus.preon.el.ObjectResolverContext


        }
    }

    private <T> ObjectCodec<T> createCodec(Class<T> type,
                                           ResolverContext context) {
        ObjectResolverContext passThroughContext = new BindingsContext(type,
                context);
        passThroughContext = ImportSupportingObjectResolverContext.decorate(
                passThroughContext, type);
        CodecReference reference = new CodecReference();
        harvestBindings(type, passThroughContext, reference);
        if (passThroughContext.getBindings().size() == 0) {
            throw new CodecConstructionException("Failed to find a single bound field on " + type.getName());
        }
        ObjectCodec<T> result = new ObjectCodec<T>(type, rewriter,
                passThroughContext);
        reference.setCodec(result);
View Full Code Here

TOP

Related Classes of org.codehaus.preon.el.ObjectResolverContext

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.