1 /* 2 * $Header: /cvshome/build/org.osgi.service.metatype/src/org/osgi/service/metatype/MetaTypeInformation.java,v 1.8 2006/06/16 16:31:23 hargrave Exp $ 3 * 4 * Copyright (c) OSGi Alliance (2005, 2006). All Rights Reserved. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 package org.osgi.service.metatype; 19 20 import org.osgi.framework.Bundle; 21 22 /** 23 * A MetaType Information object is created by the MetaTypeService to return 24 * meta type information for a specific bundle. 25 * 26 * @version $Revision: 1.8 $ 27 * @since 1.1 28 */ 29 public interface MetaTypeInformation extends MetaTypeProvider { 30 /** 31 * Return the PIDs (for ManagedServices) for which ObjectClassDefinition 32 * information is available. 33 * 34 * @return Array of PIDs. 35 */ 36 public String[] getPids(); 37 38 /** 39 * Return the Factory PIDs (for ManagedServiceFactories) for which 40 * ObjectClassDefinition information is available. 41 * 42 * @return Array of Factory PIDs. 43 */ 44 public String[] getFactoryPids(); 45 46 /** 47 * Return the bundle for which this object provides meta type information. 48 * 49 * @return Bundle for which this object provides meta type information. 50 */ 51 public Bundle getBundle(); 52 } 53