org.teiid.templates
Class TranslatorTemplateInfoFactory
java.lang.Object
org.teiid.templates.TranslatorTemplateInfoFactory
public class TranslatorTemplateInfoFactory
- extends java.lang.Object
|
Method Summary |
org.jboss.managed.api.DeploymentTemplateInfo |
createTemplateInfo(java.lang.Class<? extends org.jboss.managed.api.DeploymentTemplateInfo> infoClass,
java.lang.Class<?> attachmentClass,
java.lang.String name,
java.lang.String description)
Create a DeploymentTemplateInfo by scanning the metadata attachment class
for ManagementProperty annotations. |
static java.util.Map<java.lang.String,org.jboss.managed.api.ManagedProperty> |
getProperties(java.lang.Class<?> attachmentClass)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TranslatorTemplateInfoFactory
public TranslatorTemplateInfoFactory()
createTemplateInfo
public org.jboss.managed.api.DeploymentTemplateInfo createTemplateInfo(java.lang.Class<? extends org.jboss.managed.api.DeploymentTemplateInfo> infoClass,
java.lang.Class<?> attachmentClass,
java.lang.String name,
java.lang.String description)
throws java.lang.Exception
- Create a DeploymentTemplateInfo by scanning the metadata attachment class
for ManagementProperty annotations.
- Parameters:
infoClass - - the DeploymentTemplateInfo implementation to use. Must have a ctor with sig (String,String,Map).attachmentClass - - the metadata class to scan for ManagementProperty annotationsname - - the template namedescription - - the template description
- Returns:
- the DeploymentTemplateInfo instance
- Throws:
java.lang.Exception - on failure to create the DeploymentTemplateInfo
getProperties
public static java.util.Map<java.lang.String,org.jboss.managed.api.ManagedProperty> getProperties(java.lang.Class<?> attachmentClass)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
- Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
Copyright © 2011. All Rights Reserved.