Package net.sf.cglib.beans

Examples of net.sf.cglib.beans.BeanMap


    private Map<Class,BeanMap> beanMapMap = new HashMap<Class, BeanMap>();

    public <C extends ApiObject> C copy(C original, AuthorizationContext authorizationContext)
    {
        C copy = (C) createInstance(original.getClass());
        BeanMap beanMap = getBeanMap(copy);
        Set<String> set = beanMap.keySet();
        for (String propertyName : set)
        {
            if(authorizationContext.isReadable(propertyName))
                beanMap.put(copy,propertyName,beanMap.get(original,propertyName));
        }

        return copy;
    }
View Full Code Here


        return copy;
    }

    private synchronized <C extends ApiObject> BeanMap getBeanMap(C object)
    {
        BeanMap beanMap = beanMapMap.get(object.getClass());
        if(beanMap == null)
        {
            beanMap = BeanMap.create(object);
            beanMapMap.put(object.getClass(),beanMap);
        }
View Full Code Here

TOP

Related Classes of net.sf.cglib.beans.BeanMap

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.