public abstract class AbstractModule extends Object
Constructor 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–2015 Mysema Ltd. All rights reserved.