Mail Archive Home | fractal-commits List | March 2006 Index
| <-- Date Index --> | <-- Thread Index --> |
Date: Friday, March 24, 2006 @ 10:41:58
Author: seintur
Path: /cvsroot/fractal/aokell/src/org/objectweb/fractal/aokell
Modified: AOKell.java Membranes.java
Register AOKell default membranes in the constructor of the membrane
repository.
----------------+
AOKell.java | 11 +----------
Membranes.java | 7 ++++++-
2 files changed, 7 insertions(+), 11 deletions(-)
Index: aokell/src/org/objectweb/fractal/aokell/AOKell.java
diff -u aokell/src/org/objectweb/fractal/aokell/AOKell.java:1.5
aokell/src/org/objectweb/fractal/aokell/AOKell.java:1.6
--- aokell/src/org/objectweb/fractal/aokell/AOKell.java:1.5 Thu Mar 23
13:40:44 2006
+++ aokell/src/org/objectweb/fractal/aokell/AOKell.java Fri Mar 24 10:41:58
2006
@@ -46,16 +46,7 @@
*/
public class AOKell implements Factory {
- public AOKell() {
- /*
- * Initialize (or reset) the membrane repository and register AOKell
- * membranes. The membrane repository needs to be reset when some
series
- * of tests or applications are launched within the same JVM.
- */
- Membranes mr = Membranes.get();
- mr.reset();
- mr.register(AOKellMembranes.getMembranes());
- }
+ public AOKell() {}
/**
Index: aokell/src/org/objectweb/fractal/aokell/Membranes.java
diff -u aokell/src/org/objectweb/fractal/aokell/Membranes.java:1.1
aokell/src/org/objectweb/fractal/aokell/Membranes.java:1.2
--- aokell/src/org/objectweb/fractal/aokell/Membranes.java:1.1 Thu Mar 23
13:40:44 2006
+++ aokell/src/org/objectweb/fractal/aokell/Membranes.java Fri Mar 24
10:41:58 2006
@@ -39,7 +39,12 @@
/** The singleton instance of itself. */
private static Membranes singleton = new Membranes();
- private Membranes() {}
+ private Membranes() {
+ /*
+ * Register AOKell default membranes.
+ */
+ register(AOKellMembranes.getMembranes());
+ }
/**
* @return the singleton instance of this class.
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.