public class BeanRegistry extends Object
In a nutshell, provides a simple mapping of bean class objects to identifying names.
Class names are defined through the @Bean.typeName()
annotation.
The dictionary is used by the framework in the following ways:
Modifier and Type | Method and Description |
---|---|
ClassMeta<?> |
getClassMeta(String typeName)
Gets the class metadata for the specified bean type name.
|
String |
getTypeName(ClassMeta<?> c)
Given the specified class, return the dictionary name for it.
|
boolean |
hasName(String typeName)
Returns
|
String |
toString() |
public ClassMeta<?> getClassMeta(String typeName)
typeName
- The bean type name as defined by @Bean.typeName()
.
Can include multi-dimensional array type names (e.g. public String getTypeName(ClassMeta<?> c)
c
- The class to lookup in this registry.public boolean hasName(String typeName)
typeName
- The bean type name.Copyright © 2018 Apache. All rights reserved.