public class Injector extends java.lang.Object
| Constructor and Description |
|---|
Injector() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getInstance(java.lang.Class<T> type)
Get implementation for the provided interface based on the
mappings loaded into the injector.
|
void |
loadMappings(PtolemyModule module)
Load the interface to implementation mappings into the injector.
|
public Injector()
public <T> T getInstance(java.lang.Class<T> type)
type - The interface type to load.public void loadMappings(PtolemyModule module)
module - The interface to implementation mapping.