public class Key<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
bindingName |
protected Class<T> |
type |
protected String |
typeName |
Modifier | Constructor and Description |
---|---|
protected |
Key(Class<T> type,
String bindingName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
static <T> Key<T> |
get(Class<T> type)
Creates a key for a nameless binding of a given type.
|
static <T> Key<T> |
get(Class<T> type,
String bindingName)
Creates a key for a named binding of a given type.
|
String |
getBindingName()
Returns an optional name of the binding used to distinguish multiple bindings of
the same object type.
|
Class<T> |
getType() |
int |
hashCode() |
String |
toString() |
public static <T> Key<T> get(Class<T> type)
public static <T> Key<T> get(Class<T> type, String bindingName)
public String getBindingName()
Copyright © 2001–2014 Apache Cayenne. All rights reserved.