java - Gilead and RequestFactory alternatives -


i began develop large gwt-project, naturally have data model. , want comfortably work entity-classes on client side.

i liked gilead, this thread not news me.

i not want use requestfactory, because makes writing boilerplate code , duplicate code.

maybe knows alternatives gilead , requestfactory can me in project , supported developers nowadays?

thanks in advance!

imo, there no escape boiler plate when working gwt. think best option working data intensive apps, sophisticated data models requestfactory. can try reduce boiler plate writing code generation framework. example, take @ gwtp's annotation based code generation facilities , can generate lot of boiler plate required work mvp. specifically, gwtp can generate action , result classes encapsulate command want sent server , result returned server.

a similar code generation facility boiler-plate related requestfactory can ease burden significantly.

for example, can have annotation generating entity proxies entity classes. you'll put annotation on entity class along @entity , configure apt processor generate related entityproxy class. similar approach can taken generating value proxies.

your application specific requestfactory , requestcontext interfaces not boiler-plate, if appear such @ first glance. same goes server side implementation of entity classes.

locator , servicelocator entirely optional. you'll need them if you don't want implement persistence code in entity itself.

that leaves client-side code. can @ how gwt editor framework works requestfactory ideas on how can write generic client-side code work lot of different requestfactory interfaces.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -