com.opensymphony.xwork2.util.reflection.ReflectionProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of findsecbugs-plugin-deps Show documentation
Show all versions of findsecbugs-plugin-deps Show documentation
This module create facades for all the APIs (classes, interfaces and annotations)
that are use in the test code. The objective is to avoid the needed to download
all the framework supported by the static analyzer.
package com.opensymphony.xwork2.util.reflection;
import javax.management.ReflectionException;
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Map;
public interface ReflectionProvider {
Method getGetMethod(Class targetClass, String propertyName) throws IntrospectionException, ReflectionException;
Method getSetMethod(Class targetClass, String propertyName) throws IntrospectionException, ReflectionException;
Field getField(Class inClass, String name);
void setProperties(Map props, Object o, Map context);
void setProperties(Map props, Object o, Map context, boolean throwPropertyExceptions) throws ReflectionException;
void setProperties(Map properties, Object o);
PropertyDescriptor getPropertyDescriptor(Class targetClass, String propertyName) throws IntrospectionException, ReflectionException;
void copy(Object from, Object to, Map context, Collection exclusions, Collection inclusions);
Object getRealTarget(String property, Map context, Object root) throws ReflectionException;
void setProperty(String name, Object value, Object o, Map context, boolean throwPropertyExceptions);
void setProperty(String name, Object value, Object o, Map context);
Map getBeanMap(Object source) throws IntrospectionException, ReflectionException;
Object getValue( String expression, Map context, Object root ) throws ReflectionException;
void setValue( String expression, Map context, Object root, Object value ) throws ReflectionException;
PropertyDescriptor[] getPropertyDescriptors(Object source) throws IntrospectionException;
}