Package com.espertech.esper.event.bean

Examples of com.espertech.esper.event.bean.DynamicPropertyDescriptor


        this.eventAdapterService = eventAdapterService;
    }

    public Object getBeanProp(Object object) throws PropertyAccessException
    {
        DynamicPropertyDescriptor desc = getPopulateCache(object);
        if (desc.getMethod() == null)
        {
            return null;
        }
        return call(desc, object);
    }
View Full Code Here


        return call(desc, object);
    }

    public boolean isBeanExistsProperty(Object object)
    {
        DynamicPropertyDescriptor desc = getPopulateCache(object);
        if (desc.getMethod() == null)
        {
            return false;
        }
        return true;
    }
View Full Code Here

        return true;
    }

    public final Object get(EventBean obj) throws PropertyAccessException
    {
        DynamicPropertyDescriptor desc = getPopulateCache(obj.getUnderlying());
        if (desc.getMethod() == null)
        {
            return null;
        }
        return call(desc, obj.getUnderlying());
    }
View Full Code Here

        return call(desc, obj.getUnderlying());
    }

    public boolean isExistsProperty(EventBean eventBean)
    {
        DynamicPropertyDescriptor desc = getPopulateCache(eventBean.getUnderlying());
        if (desc.getMethod() == null)
        {
            return false;
        }
        return true;
    }
View Full Code Here

            // Lookup method to use
            Method method = determineMethod(target);

            // Cache descriptor and create fast method
            DynamicPropertyDescriptor propertyDescriptor;
            if (method == null)
            {
                propertyDescriptor = new DynamicPropertyDescriptor(target, null, false);
            }
            else
            {
                FastClass fastClass = FastClass.create(Thread.currentThread().getContextClassLoader(), target);
                FastMethod fastMethod = fastClass.getMethod(method);
                propertyDescriptor = new DynamicPropertyDescriptor(target, fastMethod, fastMethod.getParameterTypes().length > 0);
            }
            cache.add(propertyDescriptor);
            return propertyDescriptor;
        }
    }
View Full Code Here

TOP

Related Classes of com.espertech.esper.event.bean.DynamicPropertyDescriptor

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.