public class DependencyInjectionFactory extends Object
Constructor and Description |
---|
DependencyInjectionFactory() |
Modifier and Type | Method and Description |
---|---|
static Object |
newInstance(Class type,
Object[] dependencies)
Create an instance with dependency injection.
|
static Object |
newInstance(Class type,
Object[] dependencies,
BitSet usedDependencies)
Create an instance with dependency injection.
|
public static Object newInstance(Class type, Object[] dependencies)
TypedNull
instance to inject
null
as parameter.type
- the type to create an instance ofdependencies
- the possible dependenciesObjectAccessException
- if no instance can be generatedIllegalArgumentException
- if more than 63 dependencies have been providedpublic static Object newInstance(Class type, Object[] dependencies, BitSet usedDependencies)
TypedNull
instance to inject
null
as parameter.type
- the type to create an instance ofdependencies
- the possible dependenciesusedDependencies
- bit mask set by the method for all used dependencies (may be null
)ObjectAccessException
- if no instance can be generatedIllegalArgumentException
- if more than 63 dependencies have been providedCopyright © 2004–2016 XStream. All rights reserved.