Package net.officefloor.servlet.inject
Class InjectContextFactory
java.lang.Object
net.officefloor.servlet.inject.InjectContextFactory
Factory for the
InjectContext.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionCreates theInjectContext.<T> TinjectDependencies(T object) Injects the dependencies onto theObject.
-
Method Details
-
createInjectContext
Creates theInjectContext.- Returns:
InjectContext.
-
injectDependencies
Injects the dependencies onto theObject.- Type Parameters:
T- Type of the object.- Parameters:
object-Objectto receive dependencies.- Returns:
- Input
Objectto allow easy factory creation. - Throws:
IllegalArgumentException- If failure to inject.IllegalAccessException- If failure to inject.
-