The 'static' Creator
The static creator is declared by default by DWR as follows:
<creator id="static" class="org.directwebremoting.create.StaticCreator"/> You don't need to add this line to your dwr.xml because it is already in DWR's internal dwr.xml file.
This creator will retrieve an instance of a class using the getInstance() method (by default) or a user specified method.
You allow DWR to use the static creator to retrieve and remote your beans as follows:
The static creator has an optional parameter that will allow you to specify the name of the method that will retrieve an instance of the class (once again getInstance is used by default). Here is an example of this usage: