public abstract class IocContainerConfigurations extends Object implements IocConfiguration
| Constructor and Description |
|---|
IocContainerConfigurations() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> IocConfig<T> |
bindType(Class<T> clazz)
Call this method on your configure method to create a configuration for some Type.
|
protected boolean |
isEnabled()
Override this method if you need to specify some conditions that enables your configuration.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigureprotected <T> IocConfig<T> bindType(Class<T> clazz)
You can write something like:
bindType(List.class).toClass(ArrayList.class);
That would cause Crux to inject a new instance of ArrayList whenever you declare
a field of type List annotated with Inject
T - clazz - protected boolean isEnabled()
Copyright © 2015. All rights reserved.