eXo Kernel :: Container 2.4.13-GA

org.exoplatform.management.jmx.impl
Class ObjectNameBuilder<T>

java.lang.Object
  extended by 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
ObjectNameBuilder(String domain, Class<? extends T> clazz)
          Create a new builder.
 
Method Summary
 ObjectName build(T object)
          Build the object name or return null if the class is not annotated by NameTemplate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 by NameTemplate.

Parameters:
object - the object
Returns:
the built name
Throws:
IllegalStateException - raised by a build time issue

eXo Kernel :: Container 2.4.13-GA

Copyright © 2015 eXo Platform SAS. All Rights Reserved.