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