net.sf.tacos.resolvers
Class ClasspathComponentSpecResolver
java.lang.Object
org.apache.tapestry.resolver.AbstractSpecificationResolver
net.sf.tacos.resolvers.ClasspathComponentSpecResolver
- All Implemented Interfaces:
- org.apache.tapestry.resolver.ComponentSpecificationResolver
public class ClasspathComponentSpecResolver
- extends org.apache.tapestry.resolver.AbstractSpecificationResolver
- implements org.apache.tapestry.resolver.ComponentSpecificationResolver
An AbstractSpecificationResolver similar to tapestry's. Contains additional
logic that can loads tapestry templates from the classpath.
- Author:
- Howard Lewis Ship, Andreas Andreou, amplafi.com
Method Summary |
protected org.apache.tapestry.spec.IComponentSpecification |
doCustomSearch(org.apache.tapestry.IRequestCycle cycle)
Override to add custom behavior to component resolution - will be the last
resolve logic to be executed. |
String |
getType()
|
protected void |
reset()
|
void |
resolve(org.apache.tapestry.IRequestCycle cycle,
org.apache.tapestry.INamespace containerNamespace,
String componentType,
Location location)
Passed the namespace of a container (to resolve the type in) and the type
to resolve, performs the processing. |
void |
resolve(org.apache.tapestry.IRequestCycle cycle,
org.apache.tapestry.INamespace containerNamespace,
String libraryId,
String componentType,
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(org.apache.tapestry.services.ClassFinder classFinder)
|
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 |
ClasspathComponentSpecResolver
public ClasspathComponentSpecResolver()
reset
protected void reset()
- Overrides:
reset
in class org.apache.tapestry.resolver.AbstractSpecificationResolver
resolve
public void resolve(org.apache.tapestry.IRequestCycle cycle,
org.apache.tapestry.INamespace containerNamespace,
String componentType,
Location location)
- Passed the namespace of a container (to resolve the type in) and the type
to resolve, performs the processing. A "bare type" (without a library
prefix) may be in the containerNamespace, or the framework namespace (a
search occurs in that order).
- Specified by:
resolve
in interface org.apache.tapestry.resolver.ComponentSpecificationResolver
- Parameters:
cycle
- current request cyclecontainerNamespace
- namespace that may contain a library referenced in the typecomponentType
- the component specification to find, either a simple name, or
prefixed with a library id (defined for the container
namespace)- See Also:
AbstractSpecificationResolver.getNamespace()
,
AbstractSpecificationResolver.getSpecification()
resolve
public void resolve(org.apache.tapestry.IRequestCycle cycle,
org.apache.tapestry.INamespace containerNamespace,
String libraryId,
String componentType,
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.
- Specified by:
resolve
in interface org.apache.tapestry.resolver.ComponentSpecificationResolver
- Parameters:
cycle
- current request cyclecontainerNamespace
- namespace that may contain a library referenced in the typelibraryId
- the library id within the container namespace, or nullcomponentType
- the component specification to find as a simple name (without
a library prefix)location
- of reference to be resolved
- Throws:
ApplicationRuntimeException
- if the type cannot be resolved
doCustomSearch
protected org.apache.tapestry.spec.IComponentSpecification doCustomSearch(org.apache.tapestry.IRequestCycle cycle)
- Override to add custom behavior to component resolution - will be the last
resolve logic to be executed.
- Parameters:
cycle
-
- Returns:
getType
public String getType()
- Specified by:
getType
in interface org.apache.tapestry.resolver.ComponentSpecificationResolver
setLog
public void setLog(Log log)
setClassFinder
public void setClassFinder(org.apache.tapestry.services.ClassFinder classFinder)
Copyright © 2005-2008 SourceForge.net. All Rights Reserved.