org.exoplatform.container.jmx
Class ObjectNameBuilder<T>
java.lang.Object
org.exoplatform.container.jmx.ObjectNameBuilder<T>
public class ObjectNameBuilder<T>
- extends Object
A builder for object name templates.
- Version:
- $Revision$
- Author:
- Julien Viet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectNameBuilder
public ObjectNameBuilder(String domain,
Class<? extends T> clazz)
throws IllegalArgumentException
- Create a new builder.
- Parameters:
clazz - the class
- Throws:
IllegalArgumentException - if the object is null
build
public ObjectName build(T object)
throws IllegalStateException
- Build the object name or return null if the class is not annotated by
NameTemplate.
- Parameters:
object - the object
- Returns:
- the built name
- Throws:
IllegalStateException - raised by a build time issue
Copyright © 2009 eXo Platform SAS. All Rights Reserved.