Skip to content

Instantly share code, notes, and snippets.

@ajduke
Created January 5, 2014 14:56
Show Gist options
  • Save ajduke/8269151 to your computer and use it in GitHub Desktop.
Save ajduke/8269151 to your computer and use it in GitHub Desktop.
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