public class ComponentSpecificationResolverImpl extends AbstractSpecificationResolver implements ComponentSpecificationResolver
INamespace
and a
IComponentSpecification
.
Like PageSpecificationResolver
, if the component is not
defined explicitly in the namespace, a search may occur: Performs the tricky work of resolving a
page name to a page specification. The search for pages in the application namespace is the most
complicated, since Tapestry searches for pages that aren't explicitly defined in the application
specification. The search, based on the simple-name of the page, goes as follows:
Constructor and Description |
---|
ComponentSpecificationResolverImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getType()
Returns the unqualified type of the component (i.e., with any namespace prefix stripped off).
|
protected void |
reset()
Clears the namespace and specification properties.
|
void |
resolve(IRequestCycle cycle,
INamespace containerNamespace,
java.lang.String type,
org.apache.hivemind.Location location)
Passed the namespace of a container (to resolve the type in) and the type to resolve,
performs the processing.
|
void |
resolve(IRequestCycle cycle,
INamespace containerNamespace,
java.lang.String libraryId,
java.lang.String type,
org.apache.hivemind.Location location)
Like
#resolve(org.apache.tapestry.IRequestCycle, org.apache.tapestry.INamespace, java.lang.String, org.apache.tapestry.ILocation) ,
but used when the type has already been parsed into a library id and a simple type. |
void |
setClassFinder(ClassFinder classFinder) |
void |
setLog(org.apache.commons.logging.Log log) |
findNamespaceForId, getApplicationNamespace, getContextRoot, getDelegate, getFrameworkNamespace, getNamespace, getSpecification, getSpecificationSource, getWebInfAppLocation, getWebInfLocation, initializeService, setApplicationId, setContextRoot, setDelegate, setNamespace, setSpecification, setSpecificationSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNamespace, getSpecification
public ComponentSpecificationResolverImpl()
protected void reset()
AbstractSpecificationResolver
reset
in class AbstractSpecificationResolver
public void resolve(IRequestCycle cycle, INamespace containerNamespace, java.lang.String type, org.apache.hivemind.Location location)
resolve
in interface ComponentSpecificationResolver
cycle
- current request cyclecontainerNamespace
- namespace that may contain a library referenced in the typetype
- the component specification to find, either a simple name, or prefixed with a
library id (defined for the container namespace)AbstractSpecificationResolver.getNamespace()
,
AbstractSpecificationResolver.getSpecification()
public void resolve(IRequestCycle cycle, INamespace containerNamespace, java.lang.String libraryId, java.lang.String type, org.apache.hivemind.Location location)
#resolve(org.apache.tapestry.IRequestCycle, org.apache.tapestry.INamespace, java.lang.String, org.apache.tapestry.ILocation)
,
but used when the type has already been parsed into a library id and a simple type.resolve
in interface ComponentSpecificationResolver
cycle
- current request cyclecontainerNamespace
- namespace that may contain a library referenced in the typelibraryId
- the library id within the container namespace, or nulltype
- the component specification to find as a simple name (without a library prefix)location
- of reference to be resolvedorg.apache.hivemind.ApplicationRuntimeException
- if the type cannot be resolvedpublic java.lang.String getType()
ComponentSpecificationResolver
getType
in interface ComponentSpecificationResolver
public void setLog(org.apache.commons.logging.Log log)
public void setClassFinder(ClassFinder classFinder)