KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > parse > ISpecificationParser


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.parse;
16
17 import org.apache.hivemind.Resource;
18 import org.apache.tapestry.spec.IApplicationSpecification;
19 import org.apache.tapestry.spec.IComponentSpecification;
20 import org.apache.tapestry.spec.ILibrarySpecification;
21
22 /**
23  * Service interface for a wrapper around the class
24  * {@link org.apache.tapestry.parse.SpecificationParser}.
25  * Because the implementation of {@link org.apache.tapestry.parse.SpecificationParser}
26  * is not threadsafe, the implementation of this
27  * service uses the pooled service model.
28  *
29  * <p>
30  * Note: had to use the 'I' prefix, so that {@link org.apache.tapestry.parse.SpecificationParser}
31  * could keep its name. Otherwise, it makes Spindle support really, really ugly.
32  *
33  * @author Howard Lewis Ship
34  * @since 4.0
35  */

36 public interface ISpecificationParser
37 {
38     /**
39      * Parses an application specification from the provided Resource.
40      *
41      * @throws org.apache.hivemind.ApplicationRuntimeException on any error.
42      */

43     public IApplicationSpecification parseApplicationSpecification(Resource resource);
44
45     public IComponentSpecification parseComponentSpecification(Resource resource);
46
47     public ILibrarySpecification parseLibrarySpecification(Resource resource);
48
49     public IComponentSpecification parsePageSpecification(Resource resource);
50 }
51
Popular Tags