Skip to content

Instantly share code, notes, and snippets.

@gregturn
Created August 11, 2017 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregturn/b4ba97c330b7d4369248a908dc3b0d73 to your computer and use it in GitHub Desktop.
Save gregturn/b4ba97c330b7d4369248a908dc3b0d73 to your computer and use it in GitHub Desktop.
public abstract class AffordanceModelFactory implements Plugin<MediaType> {
abstract public MediaType getMediaType();
abstract public List<AffordanceModel> findAffordanceModels(Affordance affordance, Object invocationValue);
@Override
public boolean supports(MediaType delimiter) {
return delimiter != null && delimiter.equals(this.getMediaType());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment