Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Simplified request composition #17
Currently, if you want to dynamically add (at run time) a request to a blade, you must create a second blade that contains the new request. For example:
So when, for example, calling stdoutAReq(Facility), first you create an anonymous subclass of FacilityAgent and then create the start request. Two objects where really only one is needed.
Instead, we can just create the new request directly:
Now we are only creating a single object. To get this to work cleanly, we should add two methods to RequestBase: