public static ObjectName makeObjectName ( JmxResource jmxResource , Object obj ) { String domainName = jmxResource . domainName ( ) ; if ( isEmpty ( domainName ) ) { throw new IllegalArgumentException ( "Could not create ObjectName because domain name not specified in @JmxResource" ) ; } String beanName = getBeanName ( jmxResource ) ; if ( beanName == null ) { beanName = obj . getClass ( ) . getSimpleName ( ) ; } return makeObjectName ( domainName , beanName , null , jmxResource . folderNames ( ) ) ; }
Constructs an object - name from a jmx - resource and a object which is not self - naming .