public class ObjectNameBuilder<T> extends Object
| Constructor and Description |
|---|
ObjectNameBuilder(String domain,
Class<? extends T> clazz)
Create a new builder.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectName |
build(T object)
Build the object name or return null if the class is not annotated by
NameTemplate. |
public ObjectNameBuilder(String domain, Class<? extends T> clazz) throws IllegalArgumentException
clazz - the classIllegalArgumentException - if the object is nullpublic ObjectName build(T object) throws IllegalStateException
NameTemplate.object - the objectIllegalStateException - raised by a build time issueCopyright © 2017 eXo Platform SAS. All Rights Reserved.