org.infinispan.cdi.common.util.SetAccessiblePriviligedAction Maven / Gradle / Ivy
package org.infinispan.cdi.common.util;
import java.lang.reflect.AccessibleObject;
import java.security.PrivilegedAction;
/**
* A {@link PrivilegedAction} that calls
* {@link AccessibleObject#setAccessible(boolean)}
*
* @author Stuart Douglas
*/
public class SetAccessiblePriviligedAction implements PrivilegedAction {
private final AccessibleObject member;
public SetAccessiblePriviligedAction(AccessibleObject member) {
this.member = member;
}
public Void run() {
member.setAccessible(true);
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy