Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update PackageMapper usage

...

Code Block
public void init() {
	super.init();

	        getRootRequestMapperAsCompound().add(
			new PackageMapperMountMapper("/mount/point", PageA new PackageMapper(
				PackageName.forClass(Page3.class))));
}

Assuming that PageA package is "com.example.pages" a request to "/mount/point/PageB" will use com.example.pages.PageB if it exists and is an instance of Page.

...