public class DefaultNameGenerator extends Object implements NameGenerator
Constructor and Description |
---|
DefaultNameGenerator() |
Modifier and Type | Method and Description |
---|---|
ObjectName |
generate(BeanDefinition<?> beanDefinition)
Generates a management bean name from a bean definition.
|
protected String |
getDomain(BeanDefinition<?> beanDefinition) |
public ObjectName generate(BeanDefinition<?> beanDefinition) throws MalformedObjectNameException
NameGenerator
generate
in interface NameGenerator
beanDefinition
- The bean definitionObjectName
MalformedObjectNameException
- If the name is invalidprotected String getDomain(BeanDefinition<?> beanDefinition)
beanDefinition
- The bean definitionObjectName