com.mysema.util
Class AbstractModule

java.lang.Object
  extended by com.mysema.util.AbstractModule
Direct Known Subclasses:
CodegenModule

public abstract class AbstractModule
extends Object

Author:
tiwe

Constructor Summary
AbstractModule()
           
 
Method Summary
<T> AbstractModule
bind(Class<T> clazz)
           
<T> AbstractModule
bind(Class<T> iface, Class<? extends T> implementation)
           
<T> AbstractModule
bind(Class<T> iface, T implementation)
           
<T> AbstractModule
bind(String name, Class<? extends T> implementation)
           
<T> AbstractModule
bind(String name, T implementation)
           
protected abstract  void configure()
           
<T> T
get(Class<T> iface)
           
<T> T
get(Class<T> iface, String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractModule

public AbstractModule()
Method Detail

bind

public final <T> AbstractModule bind(Class<T> clazz)

bind

public final <T> AbstractModule bind(String name,
                                     Class<? extends T> implementation)

bind

public final <T> AbstractModule bind(String name,
                                     T implementation)

bind

public final <T> AbstractModule bind(Class<T> iface,
                                     Class<? extends T> implementation)

bind

public final <T> AbstractModule bind(Class<T> iface,
                                     T implementation)

configure

protected abstract void configure()

get

public final <T> T get(Class<T> iface)

get

public final <T> T get(Class<T> iface,
                       String name)


Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.