com.opensymphony.xwork2.inject
Class Key<T>

java.lang.Object
  extended by com.opensymphony.xwork2.inject.Key<T>

 class Key<T>
extends Object

Dependency mapping key. Uniquely identified by the required type and name.

Author:
crazybob@google.com (Bob Lee)

Field Summary
(package private)  int hashCode
           
(package private)  String name
           
(package private)  Class<T> type
           
 
Constructor Summary
private Key(Class<T> type, String name)
           
 
Method Summary
 boolean equals(Object o)
           
(package private)  String getName()
           
(package private)  Class<T> getType()
           
 int hashCode()
           
(package private) static
<T> Key<T>
newInstance(Class<T> type, String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

type

final Class<T> type

name

final String name

hashCode

final int hashCode
Constructor Detail

Key

private Key(Class<T> type,
            String name)
Method Detail

getType

Class<T> getType()

getName

String getName()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

newInstance

static <T> Key<T> newInstance(Class<T> type,
                              String name)


Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.