001package co.codewizards.cloudstore.ls.core.invoke.filter; 002 003 004/** 005 * Filter denying all invocations targeting a class in the <code>java.lang.reflect</code> package. 006 * @author Marco หงุ่ยตระกูล-Schulze - marco at codewizards dot co 007 */ 008public class DenyReflectInvocationFilter extends AbstractInvocationFilter { 009 010 @Override 011 public int getPriority() { 012 return 500; 013 } 014 015 @Override 016 public Boolean canInvoke(final ExtMethodInvocationRequest extMethodInvocationRequest) { 017 if (extMethodInvocationRequest.getTargetClass().getName().startsWith("java.lang.reflect.")) 018 return false; 019 020 return null; 021 } 022}