Class ObjectNameBuilder<T>
- java.lang.Object
-
- org.exoplatform.management.jmx.impl.ObjectNameBuilder<T>
-
public class ObjectNameBuilder<T> extends Object
A builder for object name templates.- Version:
- $Revision$
- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description ObjectNameBuilder(String domain, Class<? extends T> clazz)Create a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectNamebuild(T object)Build the object name or return null if the class is not annotated byNameTemplate.
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
build
public ObjectName build(T object) throws IllegalStateException
Build the object name or return null if the class is not annotated byNameTemplate.- Parameters:
object- the object- Returns:
- the built name
- Throws:
IllegalStateException- raised by a build time issue
-
-