Interface ObjectNamingStrategy
- All Known Implementing Classes:
 IdentityNamingStrategy,KeyNamingStrategy,MetadataNamingStrategy
- Functional Interface:
 - This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
 
Strategy interface that encapsulates the creation of 
ObjectName instances.
 Used by the MBeanExporter to obtain ObjectNames
 when registering beans.
- Since:
 - 1.2
 - Author:
 - Rob Harrop
 - See Also:
 
- 
Method Summary
Modifier and TypeMethodDescriptiongetObjectName(Object managedBean, String beanKey) Obtain anObjectNamefor the supplied bean. 
- 
Method Details
- 
getObjectName
ObjectName getObjectName(Object managedBean, @Nullable String beanKey) throws MalformedObjectNameException Obtain anObjectNamefor the supplied bean.- Parameters:
 managedBean- the bean that will be exposed under the returnedObjectNamebeanKey- the key associated with this bean in the beans map passed to theMBeanExporter- Returns:
 - the 
ObjectNameinstance - Throws:
 MalformedObjectNameException- if the resultingObjectNameis invalid
 
 -