public class ScopeDescriptorParameterResolverFactory extends Object implements ParameterResolverFactory
ScopeDescriptor
ParameterResolver
. Will return the result of Scope.describeCurrentScope()
. If no current scope is active, NoScopeDescriptor.INSTANCE
will be returned.Constructor and Description |
---|
ScopeDescriptorParameterResolverFactory() |
Modifier and Type | Method and Description |
---|---|
ParameterResolver<ScopeDescriptor> |
createInstance(Executable executable,
Parameter[] parameters,
int parameterIndex)
If available, creates a ParameterResolver instance that can provide a parameter of type
parameterType for a given message. |
public ScopeDescriptorParameterResolverFactory()
public ParameterResolver<ScopeDescriptor> createInstance(Executable executable, Parameter[] parameters, int parameterIndex)
ParameterResolverFactory
parameterType
for a given message.
If the ParameterResolverFactory cannot provide a suitable ParameterResolver, returns null
.
createInstance
in interface ParameterResolverFactory
executable
- The executable (constructor or method) to inspectparameters
- The parameters on the executable to inspectparameterIndex
- The index of the parameter to return a ParameterResolver fornull
if none is foundCopyright © 2010–2024. All rights reserved.