PolicyCenter base configuration classes

The gsrc resource folder contains Guidewire classes and enhancements—divided into packages—that provide additional business functionality. In the base configuration, Studio contains the following packages in the gsrc folder:

  • com
  • gw
  • wsi

If you create new classes and enhancements, Guidewire recommends that you create your own subpackages in the gsrc folder, rather than adding to the existing Guidewire folders.

The com package

In the base configuration, the com package contains a single Gosu class:

com.guidewire.pl.quickjump.BaseCommand

For a discussion of the QuickJump functionality, see Implementing QuickJump commands.

The gw package

In the base PolicyCenter configuration, the gw.* Gosu class libraries contain a number of Gosu classes, divided into subpackages by functional area. To access these libraries, you merely need to type gw. (gw dot) in a Studio editor. The following subpackages under the gw package play an important role in Studio:

  • gw.api.*
  • gw.plugin

gw.api.*

There are actually two gw.api packages that you can access:

  • One consists of a set of built-in library functions that you can access and use, but not modify.
  • The other set of library functions is visible in the Studio gsrc folder in the configuration tree. You can access these classes and modify them to suit your business needs.

You access both the same way, by entering gw.api in the Gosu editor. You can then choose a package or class that falls into one category or the other. For example, if you enter gw.api. in the Gosu editor, the Studio Complete Code feature provides you with the following list:

  • activity
  • address
  • admin
  • ...

In this case, the activity and admin packages contain read-only classes. The address package is visible in Studio, in the gsrc folder.

gw.plugin

If you create a new Gosu plugin, place your plugin class in the gw.plugin package.

See also