org.apache.tapestry.resolver
Class AbstractSpecificationResolver

java.lang.Object
  extended by org.apache.tapestry.resolver.AbstractSpecificationResolver
Direct Known Subclasses:
ComponentSpecificationResolverImpl, PageSpecificationResolverImpl

public class AbstractSpecificationResolver
extends Object

Base class for resolving a IComponentSpecificationfor a particular page or component, within a specified INamespace. In some cases, a search is necessary.

Since:
3.0
Author:
Howard Lewis Ship

Constructor Summary
AbstractSpecificationResolver()
           
 
Method Summary
protected  INamespace findNamespaceForId(INamespace containerNamespace, String libraryId)
           
protected  INamespace getApplicationNamespace()
           
protected  org.apache.hivemind.Resource getContextRoot()
          Returns the location of the servlet, within the servlet context.
 ISpecificationResolverDelegate getDelegate()
          Returns the ISpecificationResolverDelegateinstance registered in the application or null if no such extension exists.
protected  INamespace getFrameworkNamespace()
           
 INamespace getNamespace()
          Returns the resolve namespace.
 IComponentSpecification getSpecification()
          Returns the resolved specification.
protected  ISpecificationSource getSpecificationSource()
          Returns the specification source for the running application.
protected  org.apache.hivemind.Resource getWebInfAppLocation()
          Returns the location of the application-specific subdirectory, under /WEB-INF/, in the servlet context.
protected  org.apache.hivemind.Resource getWebInfLocation()
          Returns the location of /WEB-INF/, in the servlet context.
 void initializeService()
           
protected  void reset()
          Clears the namespace and specification properties.
 void setApplicationId(String applicationId)
           
 void setContextRoot(org.apache.hivemind.Resource contextRoot)
           
 void setDelegate(ISpecificationResolverDelegate delegate)
           
protected  void setNamespace(INamespace namespace)
          Invoked in subclasses to identify the resolved namespace.
protected  void setSpecification(IComponentSpecification specification)
          Invoked in subclass to set the final specification the initial inputs are resolved to.
 void setSpecificationSource(ISpecificationSource source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSpecificationResolver

public AbstractSpecificationResolver()
Method Detail

initializeService

public void initializeService()

getDelegate

public ISpecificationResolverDelegate getDelegate()
Returns the ISpecificationResolverDelegateinstance registered in the application or null if no such extension exists.


getContextRoot

protected org.apache.hivemind.Resource getContextRoot()
Returns the location of the servlet, within the servlet context.


setContextRoot

public void setContextRoot(org.apache.hivemind.Resource contextRoot)

setNamespace

protected void setNamespace(INamespace namespace)
Invoked in subclasses to identify the resolved namespace.


getNamespace

public INamespace getNamespace()
Returns the resolve namespace.


getSpecificationSource

protected ISpecificationSource getSpecificationSource()
Returns the specification source for the running application.


getWebInfLocation

protected org.apache.hivemind.Resource getWebInfLocation()
Returns the location of /WEB-INF/, in the servlet context.


getWebInfAppLocation

protected org.apache.hivemind.Resource getWebInfAppLocation()
Returns the location of the application-specific subdirectory, under /WEB-INF/, in the servlet context.


getSpecification

public IComponentSpecification getSpecification()
Returns the resolved specification.


setSpecification

protected void setSpecification(IComponentSpecification specification)
Invoked in subclass to set the final specification the initial inputs are resolved to.


reset

protected void reset()
Clears the namespace and specification properties.


setDelegate

public void setDelegate(ISpecificationResolverDelegate delegate)
Since:
4.0

setApplicationId

public void setApplicationId(String applicationId)
Since:
4.0

setSpecificationSource

public void setSpecificationSource(ISpecificationSource source)
Since:
4.0

getApplicationNamespace

protected INamespace getApplicationNamespace()
Since:
4.0

getFrameworkNamespace

protected INamespace getFrameworkNamespace()
Since:
4.0

findNamespaceForId

protected INamespace findNamespaceForId(INamespace containerNamespace,
                                        String libraryId)
Since:
4.0


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