-
-
Save adgadev/5d34f1605ec708185bebbc7577ac063a 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 HaloProfileCondition implements Condition { | |
private static final Profiles HALO_PROFILE = Profiles.of("halo"); | |
@Override | |
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) { | |
return context.getEnvironment().acceptsProfiles(HALO_PROFILE); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment