|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
ISpecificationResolverDelegate.java | - | - | - | - |
|
1 |
// Copyright 2004, 2005 The Apache Software Foundation
|
|
2 |
//
|
|
3 |
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4 |
// you may not use this file except in compliance with the License.
|
|
5 |
// You may obtain a copy of the License at
|
|
6 |
//
|
|
7 |
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8 |
//
|
|
9 |
// Unless required by applicable law or agreed to in writing, software
|
|
10 |
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12 |
// See the License for the specific language governing permissions and
|
|
13 |
// limitations under the License.
|
|
14 |
|
|
15 |
package org.apache.tapestry.resolver;
|
|
16 |
|
|
17 |
import org.apache.tapestry.INamespace;
|
|
18 |
import org.apache.tapestry.IRequestCycle;
|
|
19 |
import org.apache.tapestry.spec.IComponentSpecification;
|
|
20 |
|
|
21 |
/**
|
|
22 |
* Delegate interface used when a page or component specification
|
|
23 |
* can not be found by the normal means. This allows hooks
|
|
24 |
* to support specifications from unusual locations, or generated
|
|
25 |
* on the fly.
|
|
26 |
*
|
|
27 |
* <p>The delegate must be coded in a threadsafe manner.
|
|
28 |
*
|
|
29 |
* @author Howard Lewis Ship
|
|
30 |
* @since 3.0
|
|
31 |
*
|
|
32 |
**/
|
|
33 |
|
|
34 |
public interface ISpecificationResolverDelegate |
|
35 |
{ |
|
36 |
/**
|
|
37 |
* Invoked by {@link PageSpecificationResolver} to find the indicated
|
|
38 |
* page specification. Returns
|
|
39 |
* the specification, or null. The specification, if returned, is not cached by Tapestry
|
|
40 |
* (it is up to the delegate to cache the specification if desired).
|
|
41 |
*
|
|
42 |
* @param cycle used to gain access to framework and Servlet API objects
|
|
43 |
* @param namespace the namespace containing the page
|
|
44 |
* @param simplePageName the name of the page (without any namespace prefix)
|
|
45 |
*
|
|
46 |
**/
|
|
47 |
|
|
48 |
public IComponentSpecification findPageSpecification(
|
|
49 |
IRequestCycle cycle, |
|
50 |
INamespace namespace, |
|
51 |
String simplePageName); |
|
52 |
|
|
53 |
/**
|
|
54 |
* Invoked by {@link PageSpecificationResolver} to find the indicated
|
|
55 |
* component specification. Returns
|
|
56 |
* the specification, or null. The specification, if returned, is not cached by Tapestry
|
|
57 |
* (it is up to the delegate to cache the specification if desired).
|
|
58 |
*
|
|
59 |
* <p>The delegate must be coded in a threadsafe manner.
|
|
60 |
*
|
|
61 |
* @param cycle used to gain access to framework and Servlet API objects
|
|
62 |
* @param namespace the namespace containing the component
|
|
63 |
* @param type the component type (without any namespace prefix)
|
|
64 |
*
|
|
65 |
**/
|
|
66 |
|
|
67 |
public IComponentSpecification findComponentSpecification(
|
|
68 |
IRequestCycle cycle, |
|
69 |
INamespace namespace, |
|
70 |
String type); |
|
71 |
} |
|
72 |
|
|