Skip to content

Commit

Permalink
Merge pull request #54 from DoclerLabs/develop
Browse files Browse the repository at this point in the history
prepare 0.20.2
  • Loading branch information
aliokan authored May 15, 2017
2 parents b665a42 + 9614239 commit fc15f91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/hex/di/Injector.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package hex.di;

import hex.collection.HashMap;
import hex.collection.ArrayMap;
import hex.di.IDependencyInjector;
import hex.di.IInjectorListener;
import hex.di.error.InjectorException;
Expand Down Expand Up @@ -30,7 +30,7 @@ class Injector
{
var _mapping : Map<String,InjectionMapping<Dynamic>>;
var _processedMapping : Map<String,Bool>;
var _managedObjects : HashMap<Dynamic, Dynamic>;
var _managedObjects : ArrayMap<Dynamic, Dynamic>;
var _parentInjector : Injector;
var _classDescriptor : IClassDescriptionProvider;

Expand All @@ -42,7 +42,7 @@ class Injector

this._mapping = new Map();
this._processedMapping = new Map();
this._managedObjects = new HashMap();
this._managedObjects = new ArrayMap();
}

public function createChildInjector() : Injector
Expand Down Expand Up @@ -300,7 +300,7 @@ class Injector

this._mapping = new Map();
this._processedMapping = new Map();
this._managedObjects = new HashMap();
this._managedObjects = new ArrayMap<Dynamic, Dynamic>();

#if !macro
this.trigger.disconnectAll();
Expand Down
12 changes: 1 addition & 11 deletions src/hex/di/mapping/MappingConfiguration.hx
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
package hex.di.mapping;

import hex.collection.HashMap;
import hex.collection.Locator;
import hex.config.stateful.IStatefulConfig;
import hex.di.IDependencyInjector;
import hex.log.HexLog.getLogger;
import hex.module.IContextModule;
import hex.service.stateful.IStatefulService;
import hex.util.Stringifier;
import hex.log.HexLog.getLogger;

/**
* ...
* @author Francis Bourre
*/
class MappingConfiguration extends Locator<String, Helper> implements IStatefulConfig
{
var _mapping = new HashMap<String, Dynamic>();

public function new()
{
super();
Expand Down Expand Up @@ -67,8 +64,6 @@ class MappingConfiguration extends Locator<String, Helper> implements IStatefulC

injector.mapClassNameToValue( classKey, mapped, helper.mapName );
}

this._mapping.put( classKey, mapped );
}
}

Expand All @@ -82,11 +77,6 @@ class MappingConfiguration extends Locator<String, Helper> implements IStatefulC
return this._registerMapping( className, new Helper( value, mapName, asSingleton, injectInto ), mapName );
}

public function getMapping() : HashMap<String, Dynamic>
{
return this._mapping;
}

function _registerMapping( className : String, helper : Helper, ?mapName : String = "" ) : Bool
{
var className : String = ( mapName != "" ? mapName + "#" : "" ) + className;
Expand Down

0 comments on commit fc15f91

Please sign in to comment.