Package net.officefloor.servlet.inject
Class InjectFieldDependencyExtractor
- java.lang.Object
-
- net.officefloor.servlet.inject.InjectFieldDependencyExtractor
-
- All Implemented Interfaces:
ServiceFactory<FieldDependencyExtractor>
,FieldDependencyExtractor
,FieldDependencyExtractorServiceFactory
public class InjectFieldDependencyExtractor extends java.lang.Object implements FieldDependencyExtractor, FieldDependencyExtractorServiceFactory
Inject
FieldDependencyExtractor
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description InjectFieldDependencyExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldDependencyExtractor
createService(ServiceContext context)
Creates the service.RequiredDependency
extractRequiredDependency(java.lang.reflect.Field field)
Extracts theRequiredDependency
.
-
-
-
Method Detail
-
createService
public FieldDependencyExtractor createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<FieldDependencyExtractor>
- Parameters:
context
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
extractRequiredDependency
public RequiredDependency extractRequiredDependency(java.lang.reflect.Field field)
Description copied from interface:FieldDependencyExtractor
Extracts theRequiredDependency
.- Specified by:
extractRequiredDependency
in interfaceFieldDependencyExtractor
- Parameters:
field
-Field
.- Returns:
RequiredDependency
.
-
-