Class DefaultNameGenerator
java.lang.Object
io.micronaut.configuration.jmx.context.DefaultNameGenerator
- All Implemented Interfaces:
NameGenerator
- Direct Known Subclasses:
EndpointNameGenerator
Generates object names where the package is the domain
and the properties has a single key of "type" that is the
simple name of the class.
- Since:
- 1.0
- Author:
- James Kleeh
-
Constructor Details
-
DefaultNameGenerator
public DefaultNameGenerator()
-
-
Method Details
-
generate
public ObjectName generate(io.micronaut.inject.BeanDefinition<?> beanDefinition) throws MalformedObjectNameException Description copied from interface:NameGenerator
Generates a management bean name from a bean definition.- Specified by:
generate
in interfaceNameGenerator
- Parameters:
beanDefinition
- The bean definition- Returns:
- The bean
ObjectName
- Throws:
MalformedObjectNameException
- If the name is invalid
-
getDomain
- Parameters:
beanDefinition
- The bean definition- Returns:
- The domain used for the
ObjectName
-