|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl
@PreventServiceDecoration public class MasterObjectProviderImpl
Constructor Summary | |
---|---|
MasterObjectProviderImpl(java.util.List<ObjectProvider> configuration,
OperationTracker tracker)
|
Method Summary | ||
---|---|---|
|
provide(java.lang.Class<T> objectType,
AnnotationProvider annotationProvider,
ObjectLocator locator,
boolean required)
Provides an object based on an expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MasterObjectProviderImpl(java.util.List<ObjectProvider> configuration, OperationTracker tracker)
Method Detail |
---|
public <T> T provide(java.lang.Class<T> objectType, AnnotationProvider annotationProvider, ObjectLocator locator, boolean required)
MasterObjectProvider
ObjectProvider
provided a non-null value, then ObjectLocator.getService(Class, Class[])
is invoked (with no marker annotations),
to provide a uniquely matching service, or throw a failure exception
if no single service can be found.
provide
in interface MasterObjectProvider
objectType
- the expected object typeannotationProvider
- provides access to annotations (typically, the field or parameter to which an
injection-related annotation is attached); annotations on the field or parameter may
also be used when resolving the desired objectlocator
- locator for the context in which the provider is being usedrequired
- if true (normal case) a value must be provided; if false then it is allowed for no
ObjectProvider to provide a value, and this method may return null to indicate the
failure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |