builder.add(moduleClasses);
}
private void addSyntheticSymbolSourceModule(String appPackage)
{
ContributionDef appPathContribution =
new SyntheticSymbolSourceContributionDef("AppPath",
new SingleKeySymbolProvider(
InternalSymbols.APP_PACKAGE_PATH,
appPackage.replace('.', '/')));
ContributionDef symbolSourceContribution =
new SyntheticSymbolSourceContributionDef("ServletContext",
appProvider,
"before:ApplicationDefaults");
ContributionDef aliasModeContribution =
new SyntheticSymbolSourceContributionDef("AliasMode",
new SingleKeySymbolProvider(InternalSymbols.ALIAS_MODE,
aliasMode),
"before:ServletContext");
ContributionDef appNameContribution =
new SyntheticSymbolSourceContributionDef("AppName",
new SingleKeySymbolProvider(InternalSymbols.APP_NAME, appName),
"before:ServletContext");
builder.add(new SyntheticModuleDef(symbolSourceContribution, aliasModeContribution, appNameContribution,