| java.lang.Object ognl.DefaultMemberAccess
DefaultMemberAccess | public class DefaultMemberAccess implements MemberAccess(Code) | | This class provides methods for setting up and restoring
access in a Field. Java 2 provides access utilities for setting
and getting fields that are non-public. This object provides
coarse-grained access controls to allow access to private, protected
and package protected members. This will apply to all classes
and members.
author: Luke Blanshard (blanshlu@netscape.net) author: Drew Davidson (drew@ognl.org) version: 15 October 1999 |
Constructor Summary | |
public | DefaultMemberAccess(boolean allowAllAccess) | public | DefaultMemberAccess(boolean allowPrivateAccess, boolean allowProtectedAccess, boolean allowPackageProtectedAccess) |
Method Summary | |
public boolean | getAllowPackageProtectedAccess() | public boolean | getAllowPrivateAccess() | public boolean | getAllowProtectedAccess() | public boolean | isAccessible(Map context, Object target, Member member, String propertyName) Returns true if the given member is accessible or can be made accessible
by this object. | public void | restore(Map context, Object target, Member member, String propertyName, Object state) | public void | setAllowPackageProtectedAccess(boolean value) | public void | setAllowPrivateAccess(boolean value) | public void | setAllowProtectedAccess(boolean value) | public Object | setup(Map context, Object target, Member member, String propertyName) |
allowPackageProtectedAccess | public boolean allowPackageProtectedAccess(Code) | | |
allowPrivateAccess | public boolean allowPrivateAccess(Code) | | |
allowProtectedAccess | public boolean allowProtectedAccess(Code) | | |
DefaultMemberAccess | public DefaultMemberAccess(boolean allowAllAccess)(Code) | | |
DefaultMemberAccess | public DefaultMemberAccess(boolean allowPrivateAccess, boolean allowProtectedAccess, boolean allowPackageProtectedAccess)(Code) | | |
getAllowPackageProtectedAccess | public boolean getAllowPackageProtectedAccess()(Code) | | |
getAllowPrivateAccess | public boolean getAllowPrivateAccess()(Code) | | |
getAllowProtectedAccess | public boolean getAllowProtectedAccess()(Code) | | |
isAccessible | public boolean isAccessible(Map context, Object target, Member member, String propertyName)(Code) | | Returns true if the given member is accessible or can be made accessible
by this object.
|
setAllowPackageProtectedAccess | public void setAllowPackageProtectedAccess(boolean value)(Code) | | |
setAllowPrivateAccess | public void setAllowPrivateAccess(boolean value)(Code) | | |
setAllowProtectedAccess | public void setAllowProtectedAccess(boolean value)(Code) | | |
|
|