From: erik Date: Mon, 12 May 2008 22:49:58 +0000 (+0000) Subject: Started work on componentizing the current user management. X-Git-Tag: wamblee-utils-0.2@603~150 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=4b8631acc67a24483ee3ce8731c30adb08e20b50;p=utils Started work on componentizing the current user management. Also fixed several bugs in SpringComponent. --- diff --git a/trunk/system/general/src/main/java/org/wamblee/system/core/DefaultScope.java b/trunk/system/general/src/main/java/org/wamblee/system/core/DefaultScope.java index 5ec26223..5a09f942 100644 --- a/trunk/system/general/src/main/java/org/wamblee/system/core/DefaultScope.java +++ b/trunk/system/general/src/main/java/org/wamblee/system/core/DefaultScope.java @@ -17,6 +17,7 @@ package org.wamblee.system.core; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.TreeMap; @@ -42,9 +43,9 @@ public class DefaultScope implements Scope { List aParent) { _parents = new ArrayList(aParent); _count = 0; - _properties = new TreeMap(); - _runtimes = new TreeMap(); - _provided = new TreeMap(); + _properties = new HashMap(); + _runtimes = new HashMap(); + _provided = new HashMap(); _externallyProvided = aExternallyProvided; } diff --git a/trunk/system/general/src/main/java/org/wamblee/system/core/Scope.java b/trunk/system/general/src/main/java/org/wamblee/system/core/Scope.java index ea814da3..4f26f53d 100644 --- a/trunk/system/general/src/main/java/org/wamblee/system/core/Scope.java +++ b/trunk/system/general/src/main/java/org/wamblee/system/core/Scope.java @@ -55,14 +55,14 @@ public interface Scope { * Publishes an implementation of a provided interface. * @param aComponent Component that provides the interface. * @param aInterface Interface that is provided. - * @param aImplementation Implementation of the interface. - * @return Returns a unique id of the published interface. + * @param aImplementation Implementation of the interface. */ void publishInterface(ProvidedInterface aInterface, Object aImplementation); /** * Retrieves an implementation of a provided interface. - * @param aProvided Provided interface. If it is null then null is returned. + * @param aProvided P + * rovided interface. If it is null then null is returned. * @param aType Type of implementation that is expected. * @return Retrieved interface. */