org.apache.commons.ognl
Interface MemberAccess

All Known Implementing Classes:
DefaultMemberAccess

public interface MemberAccess

This 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
Author:
Luke Blanshard (blanshlu@netscape.net), Drew Davidson (drew@ognl.org)

Method Summary
 boolean isAccessible(Map<String,Object> context, Object target, Member member, String propertyName)
          Returns true if the given member is accessible or can be made accessible by this object.
 void restore(Map<String,Object> context, Object target, Member member, String propertyName, Object state)
          Restores the member from the previous setup call.
 Object setup(Map<String,Object> context, Object target, Member member, String propertyName)
          Sets the member up for accessibility
 

Method Detail

setup

Object setup(Map<String,Object> context,
             Object target,
             Member member,
             String propertyName)
Sets the member up for accessibility


restore

void restore(Map<String,Object> context,
             Object target,
             Member member,
             String propertyName,
             Object state)
Restores the member from the previous setup call.


isAccessible

boolean isAccessible(Map<String,Object> context,
                     Object target,
                     Member member,
                     String propertyName)
Returns true if the given member is accessible or can be made accessible by this object.



Copyright © 1997-2013 The Apache Software Foundation. All Rights Reserved.