Package net.officefloor.servlet.inject
Class InjectContextFactory
- java.lang.Object
-
- net.officefloor.servlet.inject.InjectContextFactory
-
public class InjectContextFactory extends java.lang.ObjectFactory for theInjectContext.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectContextcreateInjectContext()Creates theInjectContext.<T> TinjectDependencies(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.IllegalAccessExceptionInjects the dependencies onto theObject.- Parameters:
object-Objectto receive dependencies.- Returns:
- Input
Objectto allow easy factory creation. - Throws:
java.lang.IllegalArgumentException- If failure to inject.java.lang.IllegalAccessException- If failure to inject.
-
-