Created
January 5, 2014 14:56
-
-
Save ajduke/8269151 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExclusionStrategyImpl implements ExclusionStrategy { | |
private final Class<?> classTypeToSkip; | |
public ExclusionStrategyImpl(Class<?> classTypeToSkip) { | |
this.classTypeToSkip = classTypeToSkip; | |
} | |
@Override | |
public boolean shouldSkipClass(Class<?> claz) { | |
return classTypeToSkip == claz; | |
} | |
@Override | |
public boolean shouldSkipField(FieldAttributes fa) { | |
return fa.getAnnotation(Deprecated.class) !=null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment