T
- The typepublic class BeanRegistration<T>
extends java.lang.Object
A bean registration is an association between a BeanDefinition
and a created bean, typically a
Singleton
.
Constructor and Description |
---|
BeanRegistration(BeanIdentifier identifier,
BeanDefinition<T> beanDefinition,
T bean) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
T |
getBean() |
BeanDefinition<T> |
getBeanDefinition() |
BeanIdentifier |
getIdentifier() |
int |
hashCode() |
java.lang.String |
toString() |
public BeanRegistration(BeanIdentifier identifier, BeanDefinition<T> beanDefinition, T bean)
identifier
- The bean identifierbeanDefinition
- The bean definitionbean
- The bean instancepublic BeanIdentifier getIdentifier()
public BeanDefinition<T> getBeanDefinition()
public T getBean()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object