summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-08-13 10:15:03 (EDT)
committer Manik Kishore2012-08-13 10:15:03 (EDT)
commite4fe2a5e9699b9c066305d7cefa2fe1e8feb6c8c (patch)
tree82c66be5fcc852d88524a5011e1ded86694edce5
parent86d260167f1b3e90fb36036428e12d05fdfb33a6 (diff)
downloadorg.eclipse.stardust.ide-e4fe2a5e9699b9c066305d7cefa2fe1e8feb6c8c.zip
org.eclipse.stardust.ide-e4fe2a5e9699b9c066305d7cefa2fe1e8feb6c8c.tar.gz
org.eclipse.stardust.ide-e4fe2a5e9699b9c066305d7cefa2fe1e8feb6c8c.tar.bz2
CRNT-25760 Refactor/Clean up MB Facade
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@58379 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java17
1 files changed, 7 insertions, 10 deletions
diff --git a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java
index d73a489..27a465d 100644
--- a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java
+++ b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java
@@ -69,10 +69,15 @@ import org.eclipse.stardust.modeling.repository.common.descriptors.ReplaceModelE
public class MBFacade
{
- private static MBFacade mbFacade;
+ private final static MBFacade mbFacade;
private ModelManagementStrategy modelManagementStrategy;
+ static
+ {
+ mbFacade = new MBFacade();
+ }
+
private MBFacade()
{
@@ -80,20 +85,12 @@ public class MBFacade
public static MBFacade getInstance()
{
- if (mbFacade == null)
- {
- mbFacade = new MBFacade();
- }
return mbFacade;
}
public static MBFacade getInstance(ModelManagementStrategy modelManagementStrategy)
{
- if (mbFacade == null)
- {
- mbFacade = new MBFacade();
- mbFacade.modelManagementStrategy = modelManagementStrategy;
- }
+ mbFacade.modelManagementStrategy = modelManagementStrategy;
return mbFacade;
}