Skip to Content »

online discount medstore
advair diskus for sale
buy advair diskus without prescription
allegra for sale
buy allegra without prescription
aristocort for sale
buy aristocort without prescription
astelin for sale
buy astelin without prescription
atarax for sale
buy atarax without prescription
benadryl for sale
buy benadryl without prescription
buy clarinex without prescription
clarinex for sale
buy claritin without prescription
claritin for sale
buy flonase without prescription
flonase for sale
buy ventolin without prescription
ventolin for sale
amoxil for sale
buy amoxil without prescription
augmentin for sale
buy augmentin without prescription
bactrim for sale
buy bactrim without prescription
biaxin for sale
buy biaxin without prescription
buy cipro without prescription
cipro for sale
buy cleocin without prescription
cleocin for sale
buy dexone without prescription
dexone for sale
buy flagyl without prescription
flagyl for sale
buy levaquin without prescription
levaquin for sale
buy omnicef without prescription
omnicef for sale
amaryl for sale
buy amaryl without prescription
buy cozaar without prescription
cozaar for sale
buy diabecon without prescription
diabecon for sale
buy glucophage without prescription
glucophage for sale
buy glucotrol without prescription
glucotrol for sale
buy glucovance without prescription
glucovance for sale
buy micronase without prescription
micronase for sale
buy prandin without prescription
prandin for sale
buy precose without prescription
precose for sale
buy cialis professional without prescription
cialis professional for sale
buy cialis soft without prescription
cialis soft for sale
buy cialis super active without prescription
cialis super active for sale
buy cialis without prescription
cialis for sale
buy levitra without prescription
levitra for sale
buy viagra professional without prescription
viagra professional for sale
buy viagra soft without prescription
viagra soft for sale
buy viagra super active without prescription
viagra super active for sale
buy viagra super force without prescription
viagra super force for sale
buy viagra without prescription
viagra for sale
buy celebrex without prescription
celebrex for sale
buy colcrys without prescription
colcrys for sale
buy feldene without prescription
feldene for sale
buy imitrex without prescription
imitrex for sale
buy inderal without prescription
inderal for sale
buy indocin without prescription
indocin for sale
buy naprosyn without prescription
naprosyn for sale
buy pletal without prescription
pletal for sale
buy robaxin without prescription
robaxin for sale
buy voltaren without prescription
voltaren for sale

GWT XDoclet

  • September 9th, 2006
  • 12:56 am

Having used Google Web Toolkit to build an application, I found out that I had to write a good portion of code, which might as well be generated automatically. I then decided to mess around with XDoclet a little to see if it was possible to make a new module. It was, and now you can use it too.

Download

xdoclet-gwt-module-0.5.jar
xdoclet-gwt-module-0.4.jar
xdoclet-gwt-module-0.3.jar
xdoclet-gwt-module-0.2.jar
xdoclet-gwt-module-0.1.jar

Changelog

0.5: Added support for @gwt.typeArgs in service methods.

0.4: Added support for setting ServiceFactory prefix (set prefix attribute in servicefactory tag in build.xml), @gwt.style and @gwt.script in EntryPoint classes. See this post for more information.

0.3: Added support for file upload, added @gwt.inherits tag instead of inherits parameter in @gwt.module. This means that it’s possible to inherit from multiple modules.

Documentation

Basically, it can generate service interfaces, async services interface, module definitions (.xml.gwt), and a basic web.xml file. Finally, it can create a service factory for creating new Async-objects.

Service interfaces
When creating a remote service, just annotate the class like this:
[code]
package dk.contix.gwt.service;

/**
* @gwt.interface service=”dk.contix.gwt.shared.RemoteService” path=”/remoteService”
*/
public class RemoteServiceImpl implements RemoteService {

/**
* @gwt.serviceMethod
*/
public String getStuff(String what) {
// code here
}
}
[/code]

This will create the interface dk.contix.gwt.shared.RemoteService containing all methods which are annotated with @gwt.serviceMethod. It will also generate the async interface in dk.contix.gwt.shared.RemoteServiceAsync

Modules
To generate module definitions (.gwt.xml files), annotate the EntryPoint classes, like this:
[code]
package dk.contix.gwt.client;

/**
* @gwt.module package=”dk.contix.gwt” include=”client,shared”
*/
public class Client implements EntryPint {
// code here
}
[/code]

This will generate a file in dk/contix/gwt calles Client.gwt.xml. The file will contain the entry-point declaration, all remote servlets, and additional source paths (those specified in the include parameter).

ServiceFactory
If a service factory is generated, a class with static methods for creating instances of the Async interfaces will be created. The factory class will automatically detect url prefixes (if the application is deployed in another context than ROOT).

Generating the files
Create a build.xml file for Ant, if you don’t already have one. Include the following target:

[code]












[/code]

Finally, place xdoclet-gwt-module-0.2.jar in lib/ so that it becomes a part of the classpath. xdoclet-*.jar and xjavadoc-*.jar is also required. They can be downloaded from xdoclet.sourceforge.net.

Bootstrapping
When a new remote service is created, there’s no interface to implement. I work around this simply by annotating the service implementation, generating the code, and then adding the implements declaration.

Inheritance
If a module inherits another, this can be specified too, like this:
[code]
/**
* @gwt.inherits name=”dk.contix.gwt.BaseModule”
* @gwt.inherits name=”com.google.gwt.user.User”
*/
public class Module implements EntryPoint {

}
[/code]

File Uploads
The XDoclet module supports code generation for file upload support. The generated code includes a factory class for FormPanels, GWT module xml configuration and web.xml configuration. To use, add one or more @gwt.upload annotations to client classes which need upload capabilities:

[code]
package dk.contix.gwt.client;

/**
* @gwt.upload path=”/upload” servlet=”dk.contix.gwt.service.FileUpload”
* @gwt.upload path=”/jpegUpload” servlet=”dk.contix.gwt.service.FileUpload”
*/
public class UploadPanel extends Composite {
public UploadPanel() {
VerticalPanel p = new VerticalPanel();
final FormPanel fp1 = UploadFactory.createUpload();
fp1.setWidget(p);
fp1.addFormHandler(…);

final FormPanel fp2 = UploadFactory.createJpegUpload();
fp2.setWidget(p);

}
}
[/code]

To generate the factory, a line needs to be added to the ant build target in the gwtdoclet tag:
[code]









[/code]

The upload servlet isn’t generated, so you need to implement it yourself. Search for implementations in the GWT group.

typeArgs
Add @gwt.typeArgs to service methods to tell the GWT compiler which types are contained in a collection:

[code]
/**
* @gwt.serviceMethod
* @gwt.typeArgs dk.contix.Test
*/
public List getObjects() {
return new ArrayList();
}
[/code]

Don’t include <> in the annotation as you would do when using GWT directly.

29,841 People had this to say...

Gravatar

Am Angebot meetic ist herauszustellen, dass das Unternehmen ungewöhnliche viele Features bzw.

Gravatar

Don’t stop your entire day work until your company is ready to go efficiently as well as for revenue.Seattle has been linked to a number of veteran hitters this offseason. Doing the things he needs to behind the plate are all fine. Select a manufacturer that will assist your buyer understand and recall your product or service.4.

Gravatar

If you had an actual child who was in pain, and you got drunk instead of being there for that child, he or she would be in even more pain from the abandonment. There are two natural inquiries that folks should have to inquire about before you throw away your dollars on the seo ranking software.Arranging as well as assisting affected individuals meant for examinations, treatments as well as other healthcare process executed by the healthcare workers. The title you will make for yourself will produce the photo you depict, so decide on a label that your potential prospects can relate with. However the key as a parent is to educate yourself.

Gravatar

Lipiski believes we eat the wrong kind of fats.”Garza is unlikely to undergo an MRI.Carrying out coaching and development exercises just for fresh medical assistants, bringing up to date the facility’s medications list and latest trouble list, and in some cases, handling projects of the front desk. This might even be making simple videos to promote their sites for them. This sort of brand is ideal for interesting your buyer with the brand name on its own.

Gravatar

Diese Anwendungen sind bereits Ihrer E-Mail-Adresse integriert sind.

Gravatar

2. But when the intent is to get approval or avoid painful feelings, then work is being used as an addiction.A good way to keep yourself in front of the competition is to respond to your competitors’ costs decisions. Getting too much saturated fat and hydrogenated oils make cell membranes stiff and stifle the intake of nutrients. Others are my source of love.
Cheap Jerseys [url=http://www.cheapnflsportsjerseys.us.com/]Cheap Jerseys[/url]

Gravatar

Do NOT hang your current season on a rookie QB. It is certainly for your benefit to have monthly bill and spending money on palm when waiting for your business to build a reliable cashflow..GM Dismisses Tulowitzki to Mets Rumors RealGM WiretapThe Colorado Rockies are listening to offers, but general manager Jeff Bridich has dismissed reports that the club is discussing a deal with the New York Mets involving Troy Tulowitzki. Individuals ought to in the individuals who can give them the confirmation of their income.
Cheap Jerseys

Gravatar

“We maintained a dialogue.Working for internet marketers is great because you can do it on your own schedule from your home. Dez Bryant (Dallas): Funny how the Cowboys ended up drafting Bryant after former Cowboy, Deion Sanders, helped end Bryants college career prematurely. Oxidation of cholesterol in the vessels is caused by free radical damage. I can’t say everybody, because the contract demands that he’ll have will eliminate a number of teams right off the bat.
Cheap Jerseys

Thankfulness to my father who stated to me on the topic of this
webpage, this web site is in fact remarkable.

Gravatar

Are you presently happy to get rid of a property?Coordinate the plan of your home business operations to avoid disturbing family actions and working. This sort of brand is ideal for interesting your buyer with the brand name on its own. Countries where diets are high in fresh vegetables, fruits and grains have lower incidents of high cholesterol. Do not draft Skelton but this is definitely a situation to keep an eye on this year.Sanitizing medical devices as well as tools, putting fresh bed sheets, disposing of waste products accordingly and also restocking the facility with all the essential supplies.

Gravatar

Do NOT hang your current season on a rookie QB.A. The normal 1 won’t have the actual assets or even time to investigation and stay on top of the latest continually on fresh advancements within the unlimited seo variety. Individuals need to familiarize on their own with the total characteristic of the item. Individuals ought to in the individuals who can give them the confirmation of their income.

Gravatar

free samples of levitra. buy levitra 20mg. levitra 20 mg dosage and bph.

Gravatar

Anyone who has chronic illness has decreased ability to make EPA and DHA which is found in this source.Dealing with all the very important papers, filing lab slips and insurance coverage data on to medical charts and additionally handling medical billings and claims.Find the time and means that will allow you to take a break from things.”Molina Tests Oblique Not In Game 4 Lineup RealGM WiretapYadier Molina tested his strained left oblique muscle before Game 4 of the NLCS on Wednesday night, but the St.2.

Gravatar

Highly descriptive blog, I liked that a lot. Will there
be a part 2?

Gravatar

They want to get their site “out there”, but they often want to move on to the next task too quickly.A good way to keep yourself in front of the competition is to respond to your competitors’ costs decisions. Ryan Mathews (San Diego): I love this kid as will the Chargers fans.I CAN HAVE CONTROL OVER HOW OTHERS FEEL ABOUT ME AND TREAT MEIf you believe you can control others feelings and behavior, you will become addicted to various ways of trying to control, such as anger, judgment, blame, or people pleasing. Once you have a system in place, you can do a lot of marketing in one day.
Cheap Jerseys From China

Gravatar

My partner and I stumbled over here by a different web page and thought I might as well check things out.
I like what I see so now i am following you. Look forward to checking out your
web page for a second time.

Gravatar

Countries where diets are high in fresh vegetables, fruits and grains have lower incidents of high cholesterol.Find the time and means that will allow you to take a break from things. Are you presently happy to get rid of a property?Coordinate the plan of your home business operations to avoid disturbing family actions and working. Eating fish like mackerel and salmon that are high in Omega3 fatty acids a few times a week can lower cholesterol levels. He threw two sides .

Gravatar

Aiding in high quality assurance services like advancement and routine service of ward wise procedures as per what’s needed.Cashman A Rods Contract Wont Impact Cano Talks RealGM WiretapBrian Cashman claims that the contract the Yankees gave to Alex Rodriguez after the 2007 season won’t impact talks with Robinson Cano on a long term deal. All of us have a wounded part of us €?our wounded self or ego self €?that has been programmed with many false beliefs through our growing up years. Addictive behavior is an abandonment of self and causes the very pain you are trying to avoid.Garza Sent Back To Chicago With Arm Stiffness RealGM WiretapThe Cubs have sent Matt Garza back to Chicago for tests after he complained of stiffness in his right arm.

Gravatar

I will right away grasp your rss as I can not find
your email subscription hyperlink or e-newsletter
service. Do you’ve any? Please permit me recognise so that I could subscribe.
Thanks.

Want your say?

* Required fields. Your e-mail address will not be published on this site

You can use the following XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>