public abstract class AbstractModule extends Object
AbstractModule
provides a base class for annotation based dependency injectionConstructor and Description |
---|
AbstractModule() |
Modifier and Type | Method and Description |
---|---|
<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) |
<T> AbstractModule |
bindInstance(String name,
Class<? extends T> implementation) |
protected abstract void |
configure() |
<T> T |
get(Class<T> iface) |
<T> T |
get(Class<T> iface,
String name) |
public final <T> AbstractModule bind(Class<T> clazz)
public final <T> AbstractModule bind(String name, Class<? extends T> implementation)
public final <T> AbstractModule bind(String name, T implementation)
public final <T> AbstractModule bindInstance(String name, Class<? extends T> implementation)
public final <T> AbstractModule bind(Class<T> iface, Class<? extends T> implementation)
public final <T> AbstractModule bind(Class<T> iface, T implementation)
protected abstract void configure()
public final <T> T get(Class<T> iface)
Copyright © 2007–2016 Querydsl. All rights reserved.