Class DependencyClassConstructorInterrogator
- java.lang.Object
-
- net.officefloor.plugin.clazz.constructor.impl.DependencyClassConstructorInterrogator
-
- All Implemented Interfaces:
ServiceFactory<ClassConstructorInterrogator>
,ClassConstructorInterrogator
,ClassConstructorInterrogatorServiceFactory
public class DependencyClassConstructorInterrogator extends java.lang.Object implements ClassConstructorInterrogator, ClassConstructorInterrogatorServiceFactory
- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description DependencyClassConstructorInterrogator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassConstructorInterrogator
createService(ServiceContext context)
Creates the service.java.lang.reflect.Constructor<?>
interrogate(ClassConstructorInterrogatorContext context)
Interrogates for theConstructor
.
-
-
-
Method Detail
-
createService
public ClassConstructorInterrogator createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<ClassConstructorInterrogator>
- Parameters:
context
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
interrogate
public java.lang.reflect.Constructor<?> interrogate(ClassConstructorInterrogatorContext context) throws java.lang.Exception
Description copied from interface:ClassConstructorInterrogator
Interrogates for theConstructor
.- Specified by:
interrogate
in interfaceClassConstructorInterrogator
- Parameters:
context
-ClassConstructorInterrogatorContext
.- Returns:
Constructor
. Should benull
to allow anotherClassConstructorInterrogator
to find theConstructor
.- Throws:
java.lang.Exception
- If fails to interrogate.
-
-