Top Deprecated
OSGi 2022-02-08

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
org.osgi.framework.Configurable

As of 1.2. Please use Configuration Admin service.

Returns:

The configuration object for this service.
org.osgi.framework.Configurable.getConfigurationObject
()

As of 1.2. Please use Configuration Admin service.

org.osgi.framework.Constants.BUNDLE_REQUIREDEXECUTIONENVIRONMENT

As of 1.6. Replaced by the osgi.ee capability.

org.osgi.framework.Constants.FRAMEWORK_EXECUTIONENVIRONMENT

As of 1.6. Replaced by the osgi.ee capability.

org.osgi.framework.FrameworkEvent(int
The event type.
type
,
Object
The event source object. This may not be null.
source
)

As of 1.2. This constructor is deprecated in favor of using the other constructor with the System Bundle as the event source.

org.osgi.framework.PackagePermission.EXPORT

As of 1.5. Use exportonly instead.

Returns:

The ConditionalPermissionInfo for the specified Conditions and Permissions.
org.osgi.service.condpermadmin.ConditionalPermissionAdmin.addConditionalPermissionInfo
(ConditionInfo[]
The conditions that need to be satisfied to enable the specified permissions. This argument can be null or an empty array indicating the specified permissions are not guarded by any conditions.
conditions
,
PermissionInfo[]
The permissions that are enabled when the specified conditions, if any, are satisfied. This argument must not be null and must specify at least one permission.
permissions
)

As of 1.1. Use newConditionalPermissionUpdate() instead.

Returns:

An AccessControlContext that has the Permissions associated with the signer.
org.osgi.service.condpermadmin.ConditionalPermissionAdmin.getAccessControlContext
(String[]
The signers for which to return an Access Control Context.
signers
)

Deprecated as a consequence of AccessControlContext being deprecated. See corresponding docs for further information.

Returns:

The Conditional Permission Info with the specified name or null if no Conditional Permission Info with the specified name exists in the Conditional Permission Table.
org.osgi.service.condpermadmin.ConditionalPermissionAdmin.getConditionalPermissionInfo
(String
The name of the Conditional Permission Info to be returned.
name
)

As of 1.1. Use newConditionalPermissionUpdate() instead.

Returns:

An enumeration of the Conditional Permission Infos that are currently in the Conditional Permission Table.
org.osgi.service.condpermadmin.ConditionalPermissionAdmin.getConditionalPermissionInfos
()

As of 1.1. Use newConditionalPermissionUpdate() instead.

Returns:

The ConditionalPermissionInfo for the specified name, Conditions and Permissions.
org.osgi.service.condpermadmin.ConditionalPermissionAdmin.setConditionalPermissionInfo
(String
The name of the Conditional Permission Info, or null.
name
,
ConditionInfo[]
The conditions that need to be satisfied to enable the specified permissions. This argument can be null or an empty array indicating the specified permissions are not guarded by any conditions.
conditions
,
PermissionInfo[]
The permissions that are enabled when the specified conditions, if any, are satisfied. This argument must not be null and must specify at least one permission.
permissions
)

As of 1.1. Use newConditionalPermissionUpdate() instead.

Returns:

Integer level of this LogEntry object.
org.osgi.service.log.LogEntry.getLevel
()

Since 1.4. Replaced by getLogLevel().

org.osgi.service.log.LogService.log(int
The severity of the message. This should be one of the defined log levels but may be any integer that is interpreted in a user defined way.
level
,
String
Human readable string describing the condition or null.
message
)

Since 1.4. Replaced by Logger. See LoggerFactory.

org.osgi.service.log.LogService.log(int
The severity of the message. This should be one of the defined log levels but may be any integer that is interpreted in a user defined way.
level
,
String
The human readable string describing the condition or null.
message
,
Throwable
The exception that reflects the condition or null.
exception
)

Since 1.4. Replaced by Logger. See LoggerFactory.

org.osgi.service.log.LogService.log(ServiceReference<?>
The ServiceReference object of the service that this message is associated with or null.
sr
,
int
The severity of the message. This should be one of the defined log levels but may be any integer that is interpreted in a user defined way.
level
,
String
Human readable string describing the condition or null.
message
)

Since 1.4. Replaced by Logger. See LoggerFactory.

org.osgi.service.log.LogService.log(ServiceReference<?>
The ServiceReference object of the service that this message is associated with.
sr
,
int
The severity of the message. This should be one of the defined log levels but may be any integer that is interpreted in a user defined way.
level
,
String
Human readable string describing the condition or null.
message
,
Throwable
The exception that reflects the condition or null.
exception
)

Since 1.4. Replaced by Logger. See LoggerFactory.

org.osgi.service.packageadmin.ExportedPackage

The PackageAdmin service has been replaced by the org.osgi.framework.wiring package.

Returns:

The version of this exported package, or null if no version information is available.
org.osgi.service.packageadmin.ExportedPackage.getSpecificationVersion
()

As of 1.2. Replaced by getVersion().

org.osgi.service.packageadmin.PackageAdmin

This service has been replaced by the org.osgi.framework.wiring package.

Returns:

The exported package, or null if no exported package with the specified name exists.
org.osgi.service.packageadmin.PackageAdmin.getExportedPackage
(String
The name of the exported package to be returned.
name
)

Returns:

An array of exported packages, or null if the specified bundle has no exported packages.
org.osgi.service.packageadmin.PackageAdmin.getExportedPackages
(Bundle
The bundle whose exported packages are to be returned, or null if all exported packages are to be returned. If the specified bundle is the system bundle (that is, the bundle with id zero), this method returns all the packages known to be exported by the system bundle. This will include the package specified by the org.osgi.framework.system.packages system property as well as any other package exported by the framework implementation.
bundle
)

Returns:

An array of the exported packages, or null if no exported packages with the specified name exists.
org.osgi.service.packageadmin.PackageAdmin.getExportedPackages
(String
The name of the exported packages to be returned.
name
)

Returns:

An array of required bundles or null if no required bundles exist for the specified symbolic name.
org.osgi.service.packageadmin.PackageAdmin.getRequiredBundles
(String
The bundle symbolic name or null for all required bundles.
symbolicName
)

org.osgi.service.packageadmin.RequiredBundle

The PackageAdmin service has been replaced by the org.osgi.framework.wiring package.

org.osgi.service.remoteserviceadmin.EndpointListener

As of 1.1. Replaced by EndpointEventListener.

org.osgi.service.startlevel.StartLevel

This service has been replaced by the org.osgi.framework.startlevel package.

Returns:

The UPnPErrorCode defined by a UPnP Forum working committee or specified by a UPnP vendor.
org.osgi.service.upnp.UPnPException.getUPnPError_Code
()

As of 1.2. Replaced by getUPnPErrorCode().

org.osgi.service.url.AbstractURLStreamHandlerService.setURL(URL
the URL to modify.
u
,
String
the protocol name. This value is ignored since 1.2.
proto
,
String
the remote host value for the URL.
host
,
int
the port on the remote machine.
port
,
String
the file.
file
,
String
the reference.
ref
)

This method is only for compatibility with handlers written for JDK 1.1.

org.osgi.service.url.URLStreamHandlerSetter.setURL(URL u, String protocol, String host, int port, String file, String ref)

This method is only for compatibility with handlers written for JDK 1.1.