Package ognl
Interface MemberAccess
-
- All Known Implementing Classes:
AbstractMemberAccess
public interface MemberAccessThis interface provides a hook for preparing for accessing members of objects. The Java2 version of this method can allow access to otherwise inaccessable members, such as private fields.- Version:
- 15 October 1999
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisAccessible(java.util.Map context, java.lang.Object target, java.lang.reflect.Member member, java.lang.String propertyName)Returns true if the given member is accessible or can be made accessible by this object.voidrestore(java.util.Map context, java.lang.Object target, java.lang.reflect.Member member, java.lang.String propertyName, java.lang.Object state)Restores the member from the previous setup call.java.lang.Objectsetup(java.util.Map context, java.lang.Object target, java.lang.reflect.Member member, java.lang.String propertyName)Sets the member up for accessibility
-
-
-
Method Detail
-
setup
java.lang.Object setup(java.util.Map context, java.lang.Object target, java.lang.reflect.Member member, java.lang.String propertyName)Sets the member up for accessibility- Parameters:
context- the current execution context.target- the Object upon which to perform the setup operation.member- the Member upon which to perform the setup operation.propertyName- the property upon which to perform the setup operation.- Returns:
- the Object representing the original accessibility state of the target prior to the setup operation.
-
restore
void restore(java.util.Map context, java.lang.Object target, java.lang.reflect.Member member, java.lang.String propertyName, java.lang.Object state)Restores the member from the previous setup call.- Parameters:
context- the current execution context.target- the Object upon which to perform the setup operation.member- the Member upon which to perform the setup operation.propertyName- the property upon which to perform the setup operation.state- the Object holding the state to restore (target state prior to the setup operation).
-
isAccessible
boolean isAccessible(java.util.Map context, java.lang.Object target, java.lang.reflect.Member member, java.lang.String propertyName)Returns true if the given member is accessible or can be made accessible by this object.- Parameters:
context- the current execution context.target- the Object to test accessibility for.member- the Member to test accessibility for.propertyName- the property to test accessibility for.- Returns:
- true if the target/member/propertyName is accessible in the context, false otherwise.
-
-