| Package | org.mvcexpress.base |
| Class | public class ProxyMap |
| Inheritance | ProxyMap Object |
| Method | Defined By | ||
|---|---|---|---|
CONSTRUCTOR | ProxyMap | ||
Checks if proxy object is already mapped. | ProxyMap | ||
listMappings():String
Returns text of all mapped proxy objects, and keys they are mapped to. | ProxyMap | ||
Maps proxy object to injectClass and name. | ProxyMap | ||
unmap(injectClass:Class, name:String):void
Removes proxy mapped for injection by injectClass and name. | ProxyMap | ||
| ProxyMap | () | Constructor |
| isMapped | () | method |
public function isMapped(proxyObject:Proxy, injectClass:Class = null, name:String):BooleanChecks if proxy object is already mapped.
Parameters
proxyObject:Proxy — Proxy instance to use for injection.
| |
injectClass:Class (default = null) — Optional class to use for injection, if null proxyObject class is used. It is helpful if you want to map proxy interface or subclass.
| |
name:String — Optional name if you need more then one proxy instance of same class.
|
Boolean — true if object is already mapped.
|
| listMappings | () | method |
public function listMappings():StringReturns text of all mapped proxy objects, and keys they are mapped to.
ReturnsString — Text string with all mapped proxies.
|
| map | () | method |
public function map(proxyObject:Proxy, injectClass:Class = null, name:String):voidMaps proxy object to injectClass and name.
Parameters
proxyObject:Proxy — Proxy instance to use for injection.
| |
injectClass:Class (default = null) — Optional class to use for injection, if null proxyObject class is used. It is helpful if you want to map proxy interface or subclass.
| |
name:String — Optional name if you need more then one proxy instance of same class.
|
| unmap | () | method |
public function unmap(injectClass:Class, name:String):voidRemoves proxy mapped for injection by injectClass and name. If mapping does not exists - it will fail silently.
Parameters
injectClass:Class — class previously mapped for injection
| |
name:String — name added to class, that was previously mapped for injection
|