public interface TemplateRegistry
| Modifier and Type | Method and Description |
|---|---|
<T extends org.fabric3.api.model.type.ModelObject> |
register(java.lang.String name,
java.net.URI uri,
T value)
Register the template and its parsed value.
|
<T extends org.fabric3.api.model.type.ModelObject> |
resolve(java.lang.Class<T> type,
java.lang.String name)
Returns the parsed value for the template or null if the template is not registered.
|
void |
unregister(java.lang.String name)
Removes the template.
|
<T extends org.fabric3.api.model.type.ModelObject> void register(java.lang.String name,
java.net.URI uri,
T value)
throws DuplicateTemplateException
name - the template name, which must be unique in the domainuri - the contribution the model object is contained invalue - the template valueDuplicateTemplateException - if an template by the same name is already registeredvoid unregister(java.lang.String name)
name - the template name<T extends org.fabric3.api.model.type.ModelObject> T resolve(java.lang.Class<T> type,
java.lang.String name)
type - the expected type of the parsed valuename - the template name