001 // Copyright 2007 The Apache Software Foundation
002 //
003 // Licensed under the Apache License, Version 2.0 (the "License");
004 // you may not use this file except in compliance with the License.
005 // You may obtain a copy of the License at
006 //
007 // http://www.apache.org/licenses/LICENSE-2.0
008 //
009 // Unless required by applicable law or agreed to in writing, software
010 // distributed under the License is distributed on an "AS IS" BASIS,
011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012 // See the License for the specific language governing permissions and
013 // limitations under the License.
014
015 package org.apache.hivemind.definition;
016
017 /**
018 * Represents an unresolved extension of an extension point in a registry definition.
019 * For example a contribution to a configuration point.
020 * An extension is regarded is unresolved if the corresponding definition is not directly
021 * added as object to the extension point definition but is associated by the fully
022 * qualified extension point id only.
023 *
024 * @author Achim Huegen
025 */
026 public class UnresolvedExtension
027 {
028 private String _extensionPointId;
029 private ExtensionDefinition _extension;
030
031 public UnresolvedExtension(ExtensionDefinition extension, String qualifiedExtensionPointId)
032 {
033 _extension = extension;
034 _extensionPointId = qualifiedExtensionPointId;
035 }
036
037 /**
038 * @return qualified id of the extension point which is referenced by the extension
039 */
040 public String getExtensionPointId()
041 {
042 return _extensionPointId;
043 }
044
045 /**
046 * @return the extension
047 */
048 public ExtensionDefinition getExtension()
049 {
050 return _extension;
051 }
052
053 }