Create a gist now

Instantly share code, notes, and snippets.

anonymous /MyService.java
Created Oct 28, 2011

Embed
What would you like to do?
public class MyService {
private Repository repository;
protected MyService() { }
public MyService(Repository repository) {
Validate.notNull(repository);
this.repository = repository;
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment