Created
May 26, 2016 22:07
-
-
Save authsec/f373641102bd33f291e6142cdc3cc9f5 to your computer and use it in GitHub Desktop.
This file contains 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
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