KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > hivemind > definition > UnresolvedExtension


1 // Copyright 2007 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.hivemind.definition;
16
17 /**
18  * Represents an unresolved extension of an extension point in a registry definition.
19  * For example a contribution to a configuration point.
20  * An extension is regarded is unresolved if the corresponding definition is not directly
21  * added as object to the extension point definition but is associated by the fully
22  * qualified extension point id only.
23  *
24  * @author Achim Huegen
25  */

26 public class UnresolvedExtension
27 {
28     private String JavaDoc _extensionPointId;
29     private ExtensionDefinition _extension;
30     
31     public UnresolvedExtension(ExtensionDefinition extension, String JavaDoc qualifiedExtensionPointId)
32     {
33         _extension = extension;
34         _extensionPointId = qualifiedExtensionPointId;
35     }
36
37     /**
38      * @return qualified id of the extension point which is referenced by the extension
39      */

40     public String JavaDoc getExtensionPointId()
41     {
42         return _extensionPointId;
43     }
44
45     /**
46      * @return the extension
47      */

48     public ExtensionDefinition getExtension()
49     {
50         return _extension;
51     }
52
53 }
54
Popular Tags