| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Object | Returns: the instantiated objectthe type to create an instance of type, final Object[] the possible dependencies dependencies)Create an instance with dependency injection. |
| public static Object | Returns: the instantiated objectthe type to create an instance of type, final Object[] the possible dependencies dependencies, final BitSet bit mask set by the method for all used dependencies (may be usedDependencies)null)Create an instance with dependency injection. |
| DependencyInjectionFactory | back to summary |
|---|---|
| public DependencyInjectionFactory() | |
| newInstance | back to summary |
|---|---|
| public static Object newInstance(final Class<T> type, final Object[] dependencies) Create an instance with dependency injection. The given dependencies are used to match the parameters of the
constructors of the type. Constructors with most parameters are examined first. A parameter type sequence
matching the sequence of the dependencies' types match first. Otherwise all the types of the dependencies must
match one of the the parameters although no dependency is used twice. Use a
| |
| newInstance | back to summary |
|---|---|
| public static Object newInstance(final Class<T> type, final Object[] dependencies, final BitSet usedDependencies) Create an instance with dependency injection. The given dependencies are used to match the parameters of the
constructors of the type. Constructors with most parameters are examined first. A parameter type sequence
matching the sequence of the dependencies' types match first. Otherwise all the types of the dependencies must
match one of the the parameters although no dependency is used twice. Use a
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Class | |
| pack-priv final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| type | back to summary |
|---|---|
| pack-priv final Class<T> type | |
| value | back to summary |
|---|---|
| pack-priv final Object value | |
| TypedValue | back to summary |
|---|---|
| public TypedValue(final Class<T> type, final Object value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |