Interface ObjectNamingStrategy
- All Known Implementing Classes:
IdentityNamingStrategy
,KeyNamingStrategy
,MetadataNamingStrategy
public interface ObjectNamingStrategy
Strategy interface that encapsulates the creation ofObjectName
instances.Used by the
MBeanExporter
to obtainObjectName
s when registering beans.- Since:
- 1.2
- Author:
- Rob Harrop
- See Also:
MBeanExporter
,ObjectName
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectName
getObjectName(Object managedBean, String beanKey)
Obtain anObjectName
for the supplied bean.
Method Detail
getObjectName
ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException
Obtain anObjectName
for the supplied bean.- Parameters:
managedBean
- the bean that will be exposed under the returnedObjectName
beanKey
- the key associated with this bean in the beans map passed to theMBeanExporter
- Returns:
- the
ObjectName
instance - Throws:
MalformedObjectNameException
- if the resultingObjectName
is invalid