HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file pal.ProxyLoader by barry
expand copy to clipboardexpand
/* {"description" : "This data type describes a component loaded by a proxy loader, along with its main provided interface."} */
data ProxyInstance {
        /* {"@description" : "The component instance that represents the proxy."} */
	IDC com
	/* {"@description" : "The main interface of the proxy, against which required interfaces are to be wired."} */
	char providedInterface[]
}

/* {"description" : "This API is used together with Assembly to describe a proxy loader instance. When switching to a new composition, the Assembly component can delegate the loading of particular components to a proxy loader, instead of loading them directly. Such proxy loaders must implement this API."} */
interface ProxyLoader {
	
	/* {"@description" : "This function should load a proxy component, parameterised by the given parameters. These parameters come from the composition string, and are controlled by the caller of the Assembly interface when adding proxies."} */
	ProxyInstance loadProxy(char proxyComponent[], char tag[], char parameters[])
        
        /* {"@description" : "This function should unload a proxy component (e.g. doing any proxy-specific cleanup)."} */
	void unloadProxy(IDC com, char proxyComponent[], char tag[], char parameters[])

	}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n pal.ProxyLoader -m "reason for update" -u yourUsername
Version 2 (this version) by barry
Notes for this version: Updates docstrings
Version 1 by barry