|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.resolver.AbstractSpecificationResolver
org.apache.tapestry.resolver.ComponentSpecificationResolverImpl
public class ComponentSpecificationResolverImpl
Utility class that understands the rules of component types (which may optionally have a library
prefix) and can resolve the type to a 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 Summary | |
---|---|
ComponentSpecificationResolverImpl()
|
Method Summary | |
---|---|
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,
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,
String libraryId,
String type,
org.apache.hivemind.Location location)
Like resolve(org.apache.tapestry.IRequestCycle, org.apache.tapestry.INamespace, java.lang.String, Location) ,
but used when the type has already been parsed into a library id and a simple type. |
void |
setClassFinder(ClassFinder classFinder)
|
void |
setClassResolver(org.apache.hivemind.ClassResolver classResolver)
|
void |
setLog(Log log)
|
Methods inherited from class org.apache.tapestry.resolver.AbstractSpecificationResolver |
---|
findNamespaceForId, getApplicationNamespace, getContextRoot, getDelegate, getFrameworkNamespace, getNamespace, getSpecification, getSpecificationSource, getWebInfAppLocation, getWebInfLocation, initializeService, setApplicationId, setContextRoot, setDelegate, setNamespace, setSpecification, setSpecificationSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.tapestry.resolver.ComponentSpecificationResolver |
---|
getNamespace, getSpecification |
Constructor Detail |
---|
public ComponentSpecificationResolverImpl()
Method Detail |
---|
protected void reset()
AbstractSpecificationResolver
reset
in class AbstractSpecificationResolver
public void resolve(IRequestCycle cycle, INamespace containerNamespace, 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, String libraryId, String type, org.apache.hivemind.Location location)
resolve(org.apache.tapestry.IRequestCycle, org.apache.tapestry.INamespace, java.lang.String, Location)
,
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 resolved
org.apache.hivemind.ApplicationRuntimeException
- if the type cannot be resolvedpublic String getType()
ComponentSpecificationResolver
getType
in interface ComponentSpecificationResolver
public void setLog(Log log)
public void setClassFinder(ClassFinder classFinder)
public void setClassResolver(org.apache.hivemind.ClassResolver classResolver)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |