Package net.officefloor.servlet.inject
Class InjectContextFactory
- java.lang.Object
-
- net.officefloor.servlet.inject.InjectContextFactory
-
public class InjectContextFactory extends java.lang.Object
Factory for theInjectContext
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectContext
createInjectContext()
Creates theInjectContext
.<T> T
injectDependencies(T object)
Injects the dependencies onto theObject
.
-
-
-
Method Detail
-
createInjectContext
public InjectContext createInjectContext()
Creates theInjectContext
.- Returns:
InjectContext
.
-
injectDependencies
public <T> T injectDependencies(T object) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
Injects the dependencies onto theObject
.- Parameters:
object
-Object
to receive dependencies.- Returns:
- Input
Object
to allow easy factory creation. - Throws:
java.lang.IllegalArgumentException
- If failure to inject.java.lang.IllegalAccessException
- If failure to inject.
-
-