public final class FrameworkActive extends AbstractIntegrationService<org.jboss.osgi.framework.internal.FrameworkState>
Framework
.
See Framework.start()
for details.
The framework service dependency hierarchy
FrameworkActive
+---FrameworkInit
+---CoreServices
| +---BundleLifecyclePlugin
| +---LifecycleInterceptorPlugin
| +---StartLevelManagerPlugin
| +---{@link SystemServicesPlugin}
| +---{@link URLHandlerPlugin}
+---{@link PersistentBundlesInstallPlugin}
+---{@link BootstrapBundlesInstallPlugin}
+---{@link FrameworkCreate}
+---{@link DeploymentProviderPlugin}
+---{@link FrameworkResolverPlugin}
| +---{@link NativeCodePlugin}
+---{@link ServiceManagerPlugin}
+---{@link FrameworkWiringPlugin}
+---{@link FrameworkStartLevelPlugin}
+---{@link BundleStartLevelPlugin}
+---{@link StartLevelManagerPlugin}
+---{@link SystemContextPlugin}
+---{@link SystemBundle}
+---{@link StorageManagerPlugin}
+---{@link SystemPathsPlugin}
+---{@link ModuleManagerPlugin}
+---{@link FrameworkEventsPlugin}
+---{@link FrameworkModuleLoaderPlugin}
+---{@link FrameworkModuleProviderPlugin}
+---{@link BundleManagerPlugin}
+---{@link EnvironmentPlugin}
+---{@link LockManagerPlugin}
Modifier and Type | Method and Description |
---|---|
protected void |
addServiceDependencies(org.jboss.msc.service.ServiceBuilder<org.jboss.osgi.framework.internal.FrameworkState> builder) |
protected org.jboss.osgi.framework.internal.FrameworkState |
createServiceValue(org.jboss.msc.service.StartContext startContext)
Start this Framework.
|
org.jboss.msc.service.ServiceController<org.jboss.osgi.framework.internal.FrameworkState> |
install(org.jboss.msc.service.ServiceTarget serviceTarget,
org.jboss.msc.service.ServiceListener<Object> listener) |
void |
stop(org.jboss.msc.service.StopContext context) |
getServiceName, getValue, start
protected void addServiceDependencies(org.jboss.msc.service.ServiceBuilder<org.jboss.osgi.framework.internal.FrameworkState> builder)
addServiceDependencies
in class AbstractIntegrationService<org.jboss.osgi.framework.internal.FrameworkState>
protected org.jboss.osgi.framework.internal.FrameworkState createServiceValue(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException
Bundle.STARTING
state, Framework.init()
is called
- All installed bundles must be started
- The start level of this Framework is moved to the FRAMEWORK_BEGINNING_STARTLEVEL
Any exceptions that occur during bundle starting must be wrapped in a BundleException
and then published as a
framework event of type FrameworkEvent.ERROR
- This Framework's state is set to Bundle.ACTIVE
.
- A framework event of type FrameworkEvent.STARTED
is firedcreateServiceValue
in class AbstractIntegrationService<org.jboss.osgi.framework.internal.FrameworkState>
org.jboss.msc.service.StartException
public org.jboss.msc.service.ServiceController<org.jboss.osgi.framework.internal.FrameworkState> install(org.jboss.msc.service.ServiceTarget serviceTarget, org.jboss.msc.service.ServiceListener<Object> listener)
install
in interface IntegrationService<org.jboss.osgi.framework.internal.FrameworkState>
install
in class AbstractIntegrationService<org.jboss.osgi.framework.internal.FrameworkState>
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<org.jboss.osgi.framework.internal.FrameworkState>
stop
in class org.jboss.msc.service.AbstractService<org.jboss.osgi.framework.internal.FrameworkState>
Copyright © 2013 JBoss by Red Hat. All rights reserved.