Skip to content

Instantly share code, notes, and snippets.

@authsec
Created May 26, 2016 22:07
Show Gist options
  • Save authsec/f373641102bd33f291e6142cdc3cc9f5 to your computer and use it in GitHub Desktop.
Save authsec/f373641102bd33f291e6142cdc3cc9f5 to your computer and use it in GitHub Desktop.
package org.coffeecrew.tutorials.simplepluginmechanism;
public enum Phase {
PRE_PROCESS(PreProcessable.class),
PROCESS(Processable.class),
POST_PROCESS(PostProcessable.class);
private final Class<? extends Plugin> plugin;
private Phase(Class<? extends Plugin> plugin) {
this.plugin = plugin;
}
public Class<? extends Plugin> getPhaseInterface() {
return plugin;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment