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.

@FunctionalInterface public interface ObjectNamingstrategy
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 Type
    Method
    Description
    getObjectName(Object managedBean, @Nullable string beanKey)
    Obtain an ObjectName for the supplied bean.
  • Method Details

    • getObjectName

      ObjectName getObjectName(Object managedBean, @Nullable string beanKey) throws MalformedObjectNameException
      Obtain an ObjectName for the supplied bean.
      Parameters:
      managedBean - the bean that will be exposed under the returned ObjectName
      beanKey - the key associated with this bean in the beans map passed to the MBeanExporter
      Returns:
      the ObjectName instance
      Throws:
      MalformedObjectNameException - if the resulting ObjectName is invalid