tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/201-best-approach-to-service-classes-with-tons-of-methodsRobotlegs: Discussion 2018-10-18T16:35:13Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/20720722010-06-25T03:59:02Z2010-06-25T03:59:02ZBest approach to Service classes with TONS of methods<div><p>I have a similar situation in one of my applications where a web
service has a dozen or so methods. In my app, I just decided to
split the single service among 3-4 Service classes and group them
by type as best as possible to keep from having a single cluttered
class.</p>
<p>Passing Command functions via AsyncTokens is perfectly viable.
I've done it in a couple of cases, but in a larger app, I feel more
comfortable letting the service do the bulk of the work.</p>
<p>There are also a couple of discussions on an AsyncCommand, but I
have not used it.<br>
<a href=
"http://knowledge.robotlegs.org/discussions/questions/115-using-the-asynccommand-with-services-callbacks">
http://knowledge.robotlegs.org/discussions/questions/115-using-the-...</a></p></div>odoe