@ConsumerType public interface ServiceMetadata extends ComponentMetadata
 This is specified by the service element.
| Modifier and Type | Field and Description | 
|---|---|
| static int | AUTO_EXPORT_ALL_CLASSESAdvertise all Java classes and interfaces in the component instance type
 as service interfaces. | 
| static int | AUTO_EXPORT_CLASS_HIERARCHYAdvertise all Java classes in the hierarchy of the component instance
 type as service interfaces. | 
| static int | AUTO_EXPORT_DISABLEDDo not auto-detect types for advertised service interfaces | 
| static int | AUTO_EXPORT_INTERFACESAdvertise all Java interfaces implemented by the component instance type
 as service interfaces. | 
ACTIVATION_EAGER, ACTIVATION_LAZY| Modifier and Type | Method and Description | 
|---|---|
| int | getAutoExport()Return the auto-export mode for the service. | 
| java.util.List<java.lang.String> | getInterfaces()Return the type names of the interfaces that the service should be
 advertised as supporting. | 
| int | getRanking()Return the ranking value to use when advertising the service. | 
| java.util.Collection<RegistrationListener> | getRegistrationListeners()Return the registration listeners to be notified when the service is
 registered and unregistered with the framework. | 
| Target | getServiceComponent()Return the Metadata for the component to be exported as a service. | 
| java.util.List<MapEntry> | getServiceProperties()Return the user declared properties to be advertised with the service. | 
getActivation, getDependsOn, getIdstatic final int AUTO_EXPORT_DISABLED
getAutoExport(), 
Constant Field Valuesstatic final int AUTO_EXPORT_INTERFACES
getAutoExport(), 
Constant Field Valuesstatic final int AUTO_EXPORT_CLASS_HIERARCHY
getAutoExport(), 
Constant Field Valuesstatic final int AUTO_EXPORT_ALL_CLASSES
getAutoExport(), 
Constant Field ValuesTarget getServiceComponent()
ref attribute of the service.java.util.List<java.lang.String> getInterfaces()
interface attribute or child
 interfaces element of the service.String for the type names of the
         interfaces that the service should be advertised as supporting.
         The List is empty if using auto-export or no interface
         names are specified for the service.int getAutoExport()
auto-export attribute of the service.AUTO_EXPORT_DISABLED, 
AUTO_EXPORT_INTERFACES, 
AUTO_EXPORT_CLASS_HIERARCHY, 
AUTO_EXPORT_ALL_CLASSESjava.util.List<MapEntry> getServiceProperties()
service-properties element of the
 service.MapEntry objects for the user
         declared properties to be advertised with the service. The List
         is empty if no service properties are specified for the service.int getRanking()
service.ranking service property.
 
 This is specified by the ranking attribute of the service.java.util.Collection<RegistrationListener> getRegistrationListeners()
registration-listener elements of the
 service.RegistrationListener objects
         to be notified when the service is registered and unregistered
         with the framework. The Collection is empty if no registration
         listeners are specified for the service.Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0