Virtual Provider Injection DSL
// use the provider DSL namespace on a property
property name="searchCriteria" inject="provider:requestCriteria";
// use the provider DSL namespace on a constructor argument
function init(coolObjectProvider inject="provider:HardToConstructObject"){
variables.coolObjectProvider = arguments.coolObjectProvider;
return this;
}
// To use it
searchCriteria.get().getCriteria();
coolObjectProvider.get().executeSomeMethod();Was this helpful?