1 21 22 package org.apache.derby.client.am; 23 24 26 public class SetAccessibleAction implements java.security.PrivilegedExceptionAction { 27 private boolean accessible_ = false; 28 29 private java.lang.reflect.Field field_ = null; 31 32 public SetAccessibleAction(java.lang.reflect.Field field, boolean accessible) { 33 field_ = field; 34 accessible_ = accessible; 35 } 36 37 public Object run() { 38 field_.setAccessible(accessible_); 39 return null; 40 } 41 42 public void setAccessible(boolean accessible) { 43 accessible_ = accessible; 44 } 45 46 public void setField(java.lang.reflect.Field field) { 47 field_ = field; 48 } 49 } 50 | Popular Tags |