Enable/Disable CRXDE LITE using Workflow

Accepted Solutions (1)

Accepted Solutions (1)

PuzanovsP
MVP
12-11-2018

Dear Ashwini,

BundleContext[0] can get you your bundles[1] and individual bundles can be started via start() method.

[0]https://osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html

[1] https://osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html

P.S. you can get BundleContext via:

@Activate
public void activate(BundleContext context) {
  
// ...
}

Regards,

Peter