org.apache.tapestry.services
Class LibraryMapping

java.lang.Object
  extended by org.apache.tapestry.services.LibraryMapping

public final class LibraryMapping
extends Object

Used to configure the ComponentClassResolver, to allow it to map prefixes to library root packages (the application namespace is a special case of this). In each case, a prefix on the path is mapped to a package. Prefixes should start and end with characters, such as "core". It is allowed for a prefix to contain a slash, though it is not recommended.

The root package name should have a number of sub-packages:

pages
contains named pages
components
contains components
mixins
contains component mixins
base
contains base classes

See Also:
TapestryModule.contributeComponentClassResolver(org.apache.tapestry.ioc.Configuration)

Constructor Summary
LibraryMapping(String pathPrefix, String rootPackage)
           
 
Method Summary
 String getPathPrefix()
           
 String getRootPackage()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LibraryMapping

public LibraryMapping(String pathPrefix,
                      String rootPackage)
Method Detail

getPathPrefix

public String getPathPrefix()

getRootPackage

public String getRootPackage()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.