Skip to content

Commit 65d7cc5

Browse files
committed
Removed same hosted proxy code.
1 parent 28cddc5 commit 65d7cc5

File tree

3 files changed

+0
-39
lines changed

3 files changed

+0
-39
lines changed

src/org/mvcexpress/core/ModuleManager.as

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -169,27 +169,6 @@ public class ModuleManager {
169169
} else {
170170
return "Module with name :" + moduleName + " is not found.";
171171
}
172-
173-
}
174-
175-
/*
176-
* Finds all proxy objects that are mapped with given className and name in all modules.
177-
* (needed to ensure there are no hosted proxies somewhere.)
178-
* @param className
179-
* @param name
180-
* @return
181-
* @private
182-
*/
183-
static pureLegsCore function findAllProxies(className:String, name:String):Vector.<Proxy> {
184-
use namespace pureLegsCore;
185-
var retVal:Vector.<Proxy> = new Vector.<Proxy>();
186-
for each (var module:ModuleBase in moduleRegistry) {
187-
var proxy:Proxy = (module.proxyMap as ProxyMap).getMappedProxy(className, name);
188-
if (proxy) {
189-
retVal.push(proxy);
190-
}
191-
}
192-
return retVal;
193172
}
194173

195174
}

src/org/mvcexpress/core/ProxyMap.as

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ public class ProxyMap implements IProxyMap {
6969
var className:String = getQualifiedClassName(injectClass);
7070
if (!injectObjectRegistry[className + name]) {
7171
use namespace pureLegsCore;
72-
if (proxyObject.hostModuleName) {
73-
if (proxyObject.hostModuleName != moduleName) {
74-
throw Error("Proxy cant be hosted in one module(" + proxyObject.hostModuleName + ") and then mapped in another(" + moduleName + "). > proxyObject : " + proxyObject + ", injectClass : " + injectClass + ", name : " + name);
75-
}
76-
}
7772
proxyObject.messenger = messenger;
7873
proxyObject.setProxyMap(this);
7974
// inject dependencies
@@ -314,16 +309,6 @@ public class ProxyMap implements IProxyMap {
314309
return retVal;
315310
}
316311

317-
/**
318-
* INTERNAL FRAMEWORK FUNCTION. Returns proxy mapped with classname and name.
319-
* @param className proxy class to search for
320-
* @param name proxy name to search for
321-
* @private
322-
*/
323-
pureLegsCore function getMappedProxy(className:String, name:String):Proxy {
324-
return injectObjectRegistry[className + name];
325-
}
326-
327312
//----------------------------------
328313
// Debug
329314
//----------------------------------

src/org/mvcexpress/mvc/Proxy.as

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ public class Proxy {
2626
/** @private */
2727
pureLegsCore var pendingInjections:int = 0;
2828

29-
/** @private */
30-
pureLegsCore var hostModuleName:String;
31-
3229
/** CONSTRUCTOR */
3330
public function Proxy() {
3431
}

0 commit comments

Comments
 (0)