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 {@code
|
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 void update(TemplateContribution tc, Map<String,String> ctx)
public String getText()
protected String getContent(TemplateContribution tc, Map<String,String> context)
tc.getContent();.Copyright © 2019 Nuxeo SA. All rights reserved.