public interface Container
| Modifier and Type | Method and Description |
|---|---|
<T> boolean |
canProvide(Class<T> type)
Returns
true if this container can provide an instance for
the given class, false otherwise. |
<T> T |
instanceFor(Class<T> type)
Retrieves the appropriate instance for the given class.
|
<T> T instanceFor(Class<T> type)
T - type - of the required component<T> boolean canProvide(Class<T> type)
true if this container can provide an instance for
the given class, false otherwise.T - type - of the required componentCopyright © 2014 Caelum. All rights reserved.