org.teiid.templates.connector
Class ConnectorDeploymentTemplate
java.lang.Object
org.teiid.templates.connector.ConnectorDeploymentTemplate
- All Implemented Interfaces:
- org.jboss.deployers.spi.management.DeploymentTemplate
public class ConnectorDeploymentTemplate
- extends java.lang.Object
- implements org.jboss.deployers.spi.management.DeploymentTemplate
The connection factory template implementation. Here the idea is "targetTemplate" is the actual template we store
the information under, which is the "connection factory" that container generates. However, we have got data
passed under Teiid owned template. Now this classe'ss JOB is to transfer the properties from the source template
into target template and write the target template.
When the properties are written to target template, and source has a new property that is not defined in target, that
property will be written as "config-property"
Method Summary |
org.jboss.virtual.VirtualFile |
applyTemplate(org.jboss.managed.api.DeploymentTemplateInfo sourceInfo)
|
java.lang.String |
getDeploymentName(java.lang.String deploymentBaseName)
|
org.jboss.managed.api.DeploymentTemplateInfo |
getInfo()
|
void |
setInfo(org.jboss.managed.api.DeploymentTemplateInfo info)
|
void |
setTargetTemplate(org.jboss.deployers.spi.management.DeploymentTemplate target)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectorDeploymentTemplate
public ConnectorDeploymentTemplate()
getDeploymentName
public java.lang.String getDeploymentName(java.lang.String deploymentBaseName)
- Specified by:
getDeploymentName
in interface org.jboss.deployers.spi.management.DeploymentTemplate
applyTemplate
public org.jboss.virtual.VirtualFile applyTemplate(org.jboss.managed.api.DeploymentTemplateInfo sourceInfo)
throws java.lang.Exception
- Specified by:
applyTemplate
in interface org.jboss.deployers.spi.management.DeploymentTemplate
- Throws:
java.lang.Exception
getInfo
public org.jboss.managed.api.DeploymentTemplateInfo getInfo()
- Specified by:
getInfo
in interface org.jboss.deployers.spi.management.DeploymentTemplate
setInfo
public void setInfo(org.jboss.managed.api.DeploymentTemplateInfo info)
setTargetTemplate
public void setTargetTemplate(org.jboss.deployers.spi.management.DeploymentTemplate target)
Copyright © 2011. All Rights Reserved.