|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.internal.services.ServiceAnnotationObjectProvider
public class ServiceAnnotationObjectProvider
Adds support for the Service
annotation (which can be applied to fields or parameters), which is used to
disambiguate injection when multiple services implement the same service interface.
Constructor Summary | |
---|---|
ServiceAnnotationObjectProvider()
|
Method Summary | ||
---|---|---|
|
provide(java.lang.Class<T> objectType,
AnnotationProvider annotationProvider,
ObjectLocator locator)
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 ServiceAnnotationObjectProvider()
Method Detail |
---|
public <T> T provide(java.lang.Class<T> objectType, AnnotationProvider annotationProvider, ObjectLocator locator)
ObjectProvider
provide
in interface ObjectProvider
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 used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |