Allows programmatic manipulation of the services inside Cairngorm's
ServiceLocator. This enabled the IoC Container to configure the
ServiceLocator at runtime.
Here's an example of a service locator xml definition:
<object id="serviceLocator" class="org.pranaframework.ioc.util.CairngormServiceLocator" factory-method="getInstance">
<property name="productService">
<ref>productService</ref>
</property>
</object>
The productService is defined as:
<object id="productService" class="com.renaun.rpc.RemoteObjectAMF0">
<property name="id" value="productService"/>
<property name="endpoint" value="http://localhost/amfphp/gateway.php"/>
<property name="source" value="com.adobe.cairngorm.samples.store.business.ProductDelegate"/>
<property name="showBusyCursor" value="true"/>
<property name="makeObjectsBindable" value="true"/>
</object>
public function CairngormServiceLocator()
Creates a new CairngormServiceLocator object.
Note: this constructor should never be called. To obtain an instance
of this class, call the static getInstance method.
public override function getHTTPService(name:String):HTTPServiceParameters
Returns
public static function getInstance():CairngormServiceLocator
Returns the sigleton instance of the
CairngormServiceLocator.
Returns
public override function getRemoteObject(name:String):RemoteObjectParameters
Returns
public override function getWebService(name:String):WebServiceParameters
Returns
Prana Framework 0.5 - 2008