org.apache.camel.guice.jsr250
Class ResourceMemberProvider
java.lang.Object
org.apache.camel.guice.support.AnnotationMemberProviderSupport<A>
org.apache.camel.guice.jsr250.NamedProviderSupport<Resource>
org.apache.camel.guice.jsr250.ResourceMemberProvider
- All Implemented Interfaces:
- AnnotationMemberProvider<Resource>
public class ResourceMemberProvider
- extends NamedProviderSupport<Resource>
Injects fields or methods with the results of the Resource
annotation
- Version:
Method Summary |
boolean |
isNullParameterAllowed(Resource annotation,
Method method,
Class<?> parameterType,
int parameterIndex)
Returns true if the given parameter on the annotated method can be null |
protected Object |
provide(Resource resource,
Member member,
com.google.inject.TypeLiteral<?> requiredType,
Class<?> memberType,
Annotation[] annotations)
The default method to create a value for the named member of the
requested type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceMemberProvider
public ResourceMemberProvider()
isNullParameterAllowed
public boolean isNullParameterAllowed(Resource annotation,
Method method,
Class<?> parameterType,
int parameterIndex)
- Description copied from interface:
AnnotationMemberProvider
- Returns true if the given parameter on the annotated method can be null
provide
protected Object provide(Resource resource,
Member member,
com.google.inject.TypeLiteral<?> requiredType,
Class<?> memberType,
Annotation[] annotations)
- Description copied from class:
AnnotationMemberProviderSupport
- The default method to create a value for the named member of the
requested type
- Specified by:
provide
in class AnnotationMemberProviderSupport<Resource>
Apache Camel