The following steps are made:
The {@code Map} argument of the launch method contains startup argumentsfor the application. The keys used in the Map must be non-null, non-empty {@code String} objects. They can be standard or application specific.OSGi defines the {@code org.osgi.triggeringevent} key to be used to passthe triggering event to a scheduled application, however in the future it is possible that other well-known keys will be defined. To avoid unwanted clashes of keys, the following rules should be applied:
The method is synchronous, it return only when the application instance was successfully started or the attempt to start it failed.
This method never returns {@code null}. If launching an application fails, the appropriate exception is thrown. @param arguments Arguments for the newly launched application, may benull @return the registered ApplicationHandle, which represents the newlylaunched application instance. Never returns {@code null}. @throws SecurityException if the caller doesn't have "lifecycle"ApplicationAdminPermission for the application. @throws ApplicationException if starting the application failed @throws IllegalStateException if the application descriptor isunregistered @throws IllegalArgumentException if the specified {@code Map} containsinvalid keys (null objects, empty {@code String} or a key that isnot {@code String})
|
|
|
|