public enum OsgiServiceScope extends Enum<OsgiServiceScope>
Enum Constant and Description |
---|
INTERNAL
Components with this scope are not published as OSGi services.
|
PROVIDED
Components with this scope are published as OSGi services that plugins can import.
|
Modifier and Type | Method and Description |
---|---|
void |
registerService(Class<?> componentInterface,
OsgiServiceRegistry registry)
Registers the given component interface with the given registry.
|
void |
registerService(Class<?> componentInterface,
OsgiServiceRegistry registry,
boolean trackBundle)
Registers the given component interface with the given registry.
|
static OsgiServiceScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OsgiServiceScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OsgiServiceScope PROVIDED
public static final OsgiServiceScope INTERNAL
public static OsgiServiceScope[] values()
for (OsgiServiceScope c : OsgiServiceScope.values()) System.out.println(c);
public static OsgiServiceScope valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void registerService(Class<?> componentInterface, OsgiServiceRegistry registry)
componentInterface
- the interface to registerregistry
- the target registrypublic void registerService(Class<?> componentInterface, OsgiServiceRegistry registry, boolean trackBundle)
componentInterface
- the interface to registerregistry
- the target registrytrackBundle
- sets whether bundle tracking is enabledCopyright © 2002-2024 Atlassian. All Rights Reserved.