org.apache.commons.inject.api
Class Key<T>

java.lang.Object
  extended by org.apache.commons.inject.api.Key<T>
All Implemented Interfaces:
IKey<T>
Direct Known Subclasses:
AbstractBindingSet.MappedKey

public class Key<T>
extends Object
implements IKey<T>


Field Summary
static Annotation[] NO_ANNOTATIONS
           
static String NO_NAME
           
 
Constructor Summary
Key(Class<T> pType)
           
Key(Class<T> pType, String pName)
           
Key(Class<T> pType, String pName, Annotation[] pAnnotations)
           
 
Method Summary
 Annotation[] getAnnotations()
           
 String getName()
           
 Class<T> getType()
           
 String toString()
           
static String toString(IKey<?> pKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_NAME

public static final String NO_NAME
See Also:
Constant Field Values

NO_ANNOTATIONS

public static final Annotation[] NO_ANNOTATIONS
Constructor Detail

Key

public Key(Class<T> pType,
           String pName,
           Annotation[] pAnnotations)

Key

public Key(Class<T> pType,
           String pName)

Key

public Key(Class<T> pType)
Method Detail

getType

public Class<T> getType()
Specified by:
getType in interface IKey<T>

getName

public String getName()
Specified by:
getName in interface IKey<T>

getAnnotations

public Annotation[] getAnnotations()
Specified by:
getAnnotations in interface IKey<T>

toString

public String toString()
Overrides:
toString in class Object

toString

public static String toString(IKey<?> pKey)


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.