Package org.apache.felix.metatype
Class DefaultMetaTypeProvider
- java.lang.Object
-
- org.apache.felix.metatype.DefaultMetaTypeProvider
-
- All Implemented Interfaces:
MetaTypeProvider
@Deprecated public class DefaultMetaTypeProvider extends java.lang.Object implements MetaTypeProvider
Deprecated.The Apache Felix metatype API is deprecated, please use the OSGi metatype API instead.TheDefaultMetaTypeProviderclass is an implementation of theMetaTypeProviderinterface which is configured for a given bundle using aMetaDataobject.This class may be used by clients, e.g.
ManagedServiceorManagedServiceFactoryimplementations to easily also implement theMetaTypeProviderinterface.
-
-
Field Summary
-
Fields inherited from interface org.osgi.service.metatype.MetaTypeProvider
METATYPE_FACTORY_PID, METATYPE_PID
-
-
Constructor Summary
Constructors Constructor Description DefaultMetaTypeProvider(Bundle bundle, MetaData metadata)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BundlegetBundle()Deprecated.Returns theBundleto which this instance belongs.DesignategetDesignate(java.lang.String pid)Deprecated.java.lang.String[]getLocales()Deprecated.Return a list of available locales.ObjectClassDefinitiongetObjectClassDefinition(java.lang.String id, java.lang.String locale)Deprecated.Returns an object class definition for the specified id localized to the specified locale.
-
-
-
Method Detail
-
getBundle
public Bundle getBundle()
Deprecated.Returns theBundleto which this instance belongs.
-
getLocales
public java.lang.String[] getLocales()
Deprecated.Description copied from interface:MetaTypeProviderReturn a list of available locales. The results must be names that consists of language [ _ country [ _ variation ]] as is customary in theLocaleclass.- Specified by:
getLocalesin interfaceMetaTypeProvider- Returns:
- An array of locale strings or
nullif there is no locale specific localization can be found.
-
getObjectClassDefinition
public ObjectClassDefinition getObjectClassDefinition(java.lang.String id, java.lang.String locale)
Deprecated.Description copied from interface:MetaTypeProviderReturns an object class definition for the specified id localized to the specified locale.The locale parameter must be a name that consists of
language[ "_"country[ "_"variation] ] as is customary in theLocaleclass. ThisLocaleclass is not used because certain profiles do not contain it.- Specified by:
getObjectClassDefinitionin interfaceMetaTypeProvider- Parameters:
id- The ID of the requested object class. This can be a pid or factory pid returned by getPids or getFactoryPids.locale- The locale of the definition ornullfor default locale.- Returns:
- A
ObjectClassDefinitionobject.
-
getDesignate
public Designate getDesignate(java.lang.String pid)
Deprecated.
-
-