Hey n0rthwood,
Thank you for your response to my 'multiple applications contexts' post. I understand the problem that you are have, using factory-method the method that you are calling has to be static on the providing bean.
I'm not too hot on the Spring-java, are you saying that by using factory-bean you can specify an instance of a bean to call the method on, and therefore the method can be public?
I've logged a a similar feature request in the jira for this project:
http://jira.springframework.org/brow...IONSCRIPTAS-23
It includes a current workaround that I am using to get properties of instantiated beans, maybe you could add another static method to the util for calling a method such as?
Code:
public static function callMethodOfInstance(instance : Object, method : String, ...args) : *
{
return ( instance[ method ] as Function ).apply( instance , args );
}
Check it out and let me know what you think