Fixed issue with java parsing; fixed caching for ArtifactInfoFactory; small cleanups
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@634183 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1041,7 +1041,7 @@ public class WebToolsServices {
|
||||
}
|
||||
|
||||
try {
|
||||
ArtifactInfoFactory aif = ArtifactInfoFactory.makeArtifactInfoFactory("default");
|
||||
ArtifactInfoFactory aif = ArtifactInfoFactory.getArtifactInfoFactory("default");
|
||||
ServiceArtifactInfo serviceInfo = aif.getServiceArtifactInfo(serviceName);
|
||||
serviceInfo.writeServiceCallGraphEoModel(eomodeldFullPath);
|
||||
} catch (GeneralException e) {
|
||||
|
||||
@@ -77,7 +77,7 @@ public class ArtifactInfoFactory {
|
||||
|
||||
public Map<ServiceEcaRule, Set<ServiceArtifactInfo>> allServiceInfosReferringToServiceEcaRule = FastMap.newInstance();
|
||||
|
||||
public static ArtifactInfoFactory makeArtifactInfoFactory(String delegatorName) throws GeneralException {
|
||||
public static ArtifactInfoFactory getArtifactInfoFactory(String delegatorName) throws GeneralException {
|
||||
if (UtilValidate.isEmpty(delegatorName)) {
|
||||
delegatorName = "default";
|
||||
}
|
||||
@@ -85,6 +85,7 @@ public class ArtifactInfoFactory {
|
||||
ArtifactInfoFactory aif = artifactInfoFactoryCache.get(delegatorName);
|
||||
if (aif == null) {
|
||||
aif = new ArtifactInfoFactory(delegatorName);
|
||||
artifactInfoFactoryCache.put(delegatorName, aif);
|
||||
}
|
||||
return aif;
|
||||
}
|
||||
|
||||
@@ -304,7 +304,7 @@ public class ServiceArtifactInfo {
|
||||
if (callingServiceSet != null) {
|
||||
// set the prefix and add to the all list
|
||||
for (ServiceArtifactInfo callingService: callingServiceSet) {
|
||||
callingService.setDisplayPrefix("Calling_");
|
||||
callingService.setDisplayPrefix("Calling:");
|
||||
allDiagramEntitiesWithPrefixes.add(callingService.getDisplayPrefixedName());
|
||||
allServiceList.add(callingService);
|
||||
}
|
||||
@@ -314,7 +314,7 @@ public class ServiceArtifactInfo {
|
||||
Set<ServiceArtifactInfo> calledServiceSet = this.getServicesCalledByService();
|
||||
|
||||
for (ServiceArtifactInfo calledService: calledServiceSet) {
|
||||
calledService.setDisplayPrefix("Called_");
|
||||
calledService.setDisplayPrefix("Called:");
|
||||
allDiagramEntitiesWithPrefixes.add(calledService.getDisplayPrefixedName());
|
||||
allServiceList.add(calledService);
|
||||
}
|
||||
@@ -323,7 +323,7 @@ public class ServiceArtifactInfo {
|
||||
Set<ServiceEcaArtifactInfo> callingServiceEcaSet = this.getServiceEcaRulesCallingService();
|
||||
if (callingServiceEcaSet != null) {
|
||||
for (ServiceEcaArtifactInfo callingServiceEca: callingServiceEcaSet) {
|
||||
callingServiceEca.setDisplayPrefix("Triggering_");
|
||||
callingServiceEca.setDisplayPrefix("Triggering:");
|
||||
allDiagramEntitiesWithPrefixes.add(callingServiceEca.getDisplayPrefixedName());
|
||||
allServiceEcaList.add(callingServiceEca);
|
||||
}
|
||||
@@ -333,7 +333,7 @@ public class ServiceArtifactInfo {
|
||||
Set<ServiceEcaArtifactInfo> calledServiceEcaSet = this.getServiceEcaRulesTriggeredByService();
|
||||
|
||||
for (ServiceEcaArtifactInfo calledServiceEca: calledServiceEcaSet) {
|
||||
calledServiceEca.setDisplayPrefix("Called_");
|
||||
calledServiceEca.setDisplayPrefix("Called:");
|
||||
allDiagramEntitiesWithPrefixes.add(calledServiceEca.getDisplayPrefixedName());
|
||||
allServiceEcaList.add(calledServiceEca);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user