Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * To change this template, choose Tools | Templates
  * and open the template in the editor.
  */
 
 package com.sun.jersey.spi.inject;
 
A utility class that may implemented to support a per-request injectable provider for a specific type T.

Parameters:
<A> the annotation type
<T> the type returned by Injectable.getValue()
Author(s):
Paul.Sandoz@Sun.Com
public abstract class PerRequestTypeInjectableProvider <A extends Annotation, T> 
    implements InjectableProvider<A, Type> {
    
    private final Type t;
    
    
Construct a new instance with the Type

Parameters:
t the type of T.
        this. = t;
    }
    public final ComponentScope getScope() {
        return .;
    }
    public final Injectable getInjectable(ComponentContext ic, A aType c) {
        if (c.equals()) {
            return getInjectable(ica);
        } else
            return null;
    }

    
Get an injectable for type T.

Parameters:
ic the injectable context
a the annotation instance
Returns:
an Injectable instance, otherwise null if an instance cannot be created.
    public abstract Injectable<T> getInjectable(ComponentContext ic, A a);
New to GrepCode? Check out our FAQ X