![JAR search and dependency download from the Maven repository](/logo.png)
org.picocontainer.gems.jmx.AbstractObjectNameFactory Maven / Gradle / Ivy
The newest version!
/*****************************************************************************
* Copyright (C) NanoContainer Organization. All rights reserved. *
* ------------------------------------------------------------------------- *
* The software in this package is published under the terms of the BSD *
* style license a copy of which has been included with this distribution in *
* the LICENSE.txt file. *
* *
* Original code by Joerg Schaible *
*****************************************************************************/
package org.picocontainer.gems.jmx;
/**
* An abstract ObjectNameFactory that offers functionality to handle the domain part of the object name.
* @author Jörg Schaible
*/
public abstract class AbstractObjectNameFactory implements ObjectNameFactory {
private final String domain;
/**
* Construct an AbstractObjectNameFactory.
* @param domain The name of the domain, use null
for the default domain.
*/
protected AbstractObjectNameFactory(final String domain) {
this.domain = domain;
}
/**
* @return Return the domain part of the {@link javax.management.ObjectName}.
*/
protected String getDomain() {
return domain != null ? domain : "";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy