@groovy.util.logging.Slf4j class Components extends java.lang.Object
A dependency manager for all of the framework components.
Constructor and description |
---|
Components() |
Type Params | Return Type | Name and description |
---|---|---|
|
static void |
clear() Empty the dependency container. |
<T> |
static T |
createInstance(java.lang.Class<T> type) Use the injector to create an instance of Type T. |
|
static void |
initializeFramework() |
|
static void |
initializeWith(com.google.inject.Module[] modules) Create an injector using specific modules. |
|
static boolean |
isInitialized()
|
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Empty the dependency container.
Use the injector to create an instance of Type T.
type
- The type of class to create.Create an injector using specific modules.
modules
- The collection of Modules with which to build the injector.