info.magnolia.objectfactory
Class CandidateParameterResolver
java.lang.Object
info.magnolia.objectfactory.CandidateParameterResolver
- All Implemented Interfaces:
- ParameterResolver
public class CandidateParameterResolver
- extends Object
- implements ParameterResolver
Parameter resolver which looks for suitable parameters in a set of candidates. Cannot handle null values since its
unable to match them to a type. Will create javax.inject.Provider instances that match the parameter's type.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CandidateParameterResolver
public CandidateParameterResolver(Object[] candidates)
resolveParameter
public Object resolveParameter(ParameterInfo parameter)
- Description copied from interface:
ParameterResolver
- Returns the instance to use for the parameter or
UNRESOLVED
if it cannot provider a value for
this parameter.
- Specified by:
resolveParameter
in interface ParameterResolver
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.