Interface NameGenerator
- All Known Implementing Classes:
DefaultNameGenerator
,EndpointNameGenerator
public interface NameGenerator
Contract to create an
ObjectName
from a bean definition.- Since:
- 1.0
- Author:
- James Kleeh
-
Method Summary
Modifier and TypeMethodDescriptiongenerate
(io.micronaut.inject.BeanDefinition<?> beanDefinition) Generates a management bean name from a bean definition.
-
Method Details
-
generate
ObjectName generate(io.micronaut.inject.BeanDefinition<?> beanDefinition) throws MalformedObjectNameException Generates a management bean name from a bean definition.- Parameters:
beanDefinition
- The bean definition- Returns:
- The bean
ObjectName
- Throws:
MalformedObjectNameException
- If the name is invalid
-