Skip to content

Instantly share code, notes, and snippets.

@MAAARKIN
Created September 14, 2019 20:06
Show Gist options
  • Save MAAARKIN/566e0239279f8f7b075bc3bcd49f6240 to your computer and use it in GitHub Desktop.
Save MAAARKIN/566e0239279f8f7b075bc3bcd49f6240 to your computer and use it in GitHub Desktop.
public enum TypeInterceptor {
LOG(new LogHeimdallInterceptor()),
MOCK(new MockHeimdallInterceptor()),
RATTING(new RattingHeimdallInterceptor()),
ACCESS_TOKEN(new AccessTokenHeimdallInterceptor()),
CLIENT_ID(new ClientIdHeimdallInterceptor()),
CUSTOM(new CustomHeimdallInterceptor()),
MIDDLEWARE(new MiddlewareHeimdallInterceptor()),
OAUTH(new OAuthHeimdallInterceptor()),
BLACKLIST(new BlacklistHeimdallInterceptor()),
WHITELIST(new WhitelistHeimdallInterceptor());
private HeimdallInterceptor heimdallInterceptor;
TypeInterceptor(HeimdallInterceptor heimdallInterceptor) {
this.heimdallInterceptor = heimdallInterceptor;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment