Created
March 24, 2011 13:48
-
-
Save sebersole/885081 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
// Current definitions | |
public interface Service extends Serializable { | |
} | |
public interface ServiceRegistry extends Serializable { | |
public <R extends Service> R getService(Class<R> serviceRole); | |
public <R extends Service> void registerService(Class<R> serviceRole, R service); | |
public <R extends Service> void registerServiceInitiator(ServiceInitiator<R> initiator); | |
} | |
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
// Considering | |
public interface Service<T> extends Serializable { | |
} | |
public interface ServiceRegistry<T> extends Serializable { | |
public <R extends Service<T>> R getService(Class<R> serviceRole); | |
public <R extends Service<T>> void registerService(Class<R> serviceRole, R service); | |
public <R extends Service<T>> void registerServiceInitiator(ServiceInitiator<R> initiator); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment