Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.google.sitebricks;
 
 
 import java.util.UUID;

Author(s):
dhanji@gmail.com (Dhanji R. Prasanna)
public abstract class AwareModule extends AbstractModule {
  protected final void configure() {
  }
  protected abstract void configureLifecycle();
  protected ScopedBindingBuilder observe(Class<? extends Awareaware) {
    Preconditions.checkArgument(!Aware.class.equals(aware), "Can't bind to interface Aware");
    return bind(Key.get(Aware.class, Names.named(UUID.randomUUID().toString()))).to(aware);
  }
New to GrepCode? Check out our FAQ X