public class Template extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BEGIN |
static String |
END |
protected static Pattern |
JAVA_MODULE |
protected static String |
JBOSS5_COMPAT |
protected boolean |
runningOnJBoss5
Must be removed when fixing deployment-fragment.xml files.
|
Constructor and Description |
---|
Template() |
Modifier and Type | Method and Description |
---|---|
void |
addPart(String name,
String text) |
void |
appendText(String marker,
String text) |
protected String |
getContent(TemplateContribution tc,
Map<String,String> context)
Wrapper method introduced to fix JEE java modules in application template.
|
String |
getText() |
void |
prependText(String marker,
String text) |
protected static String |
removeJavaModules(String content)
Remove
<module><java>...</java></module> from application.xml contributions. |
void |
replaceText(String marker,
String text) |
void |
update(TemplateContribution tc,
Map<String,String> ctx) |
public static final String BEGIN
public static final String END
protected static final String JBOSS5_COMPAT
protected boolean runningOnJBoss5
protected static final Pattern JAVA_MODULE
public Template()
public void update(TemplateContribution tc, Map<String,String> ctx)
public void appendText(String marker, String text)
public void prependText(String marker, String text)
public void replaceText(String marker, String text)
protected String getContent(TemplateContribution tc, Map<String,String> context)
tc.getContent();
.protected static String removeJavaModules(String content)
<module><java>...</java></module>
from application.xml
contributions. This a temporary fix
to remove incorrect java module declarations from deployment-fragments - this should be fixed in each fragment.Copyright © 2015 Nuxeo SA. All rights reserved.