|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.runner.platform.internal.PlatformImpl
public class PlatformImpl
Handles the workflow of creating the platform. Concrete platforms should implement only the PlatformBuilder interface. TODO Add unit tests
| Constructor Summary | |
|---|---|
PlatformImpl(PlatformBuilder platformBuilder,
org.osgi.framework.BundleContext bundleContext)
Creates a new platform. |
|
| Method Summary | |
|---|---|
void |
setResolver(org.ops4j.util.property.PropertyResolver propertyResolver)
Sets the propertyResolver to use. |
void |
start(java.util.List<BundleReference> bundles,
java.util.Properties properties,
java.util.Dictionary config)
Starts the platform using the internal Java runner service and waits for it to exit. |
void |
start(java.util.List<BundleReference> bundles,
java.util.Properties properties,
java.util.Dictionary config,
JavaRunner runner)
Starts the platform using an external Java runner service, which may not wait for it to exit. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PlatformImpl(PlatformBuilder platformBuilder,
org.osgi.framework.BundleContext bundleContext)
platformBuilder - concrete platform builder; mandatorybundleContext - a bundle context| Method Detail |
|---|
public void setResolver(org.ops4j.util.property.PropertyResolver propertyResolver)
propertyResolver - a propertyResolver
public void start(java.util.List<BundleReference> bundles,
java.util.Properties properties,
java.util.Dictionary config)
throws PlatformException
Platform
start in interface Platformbundles - a list of bundles to be included in the target platform; optionalproperties - platform properties to be available in the started platform; optionalconfig - service configuration properties
PlatformException - if something goes wrongPlatform.start(java.util.List,java.util.Properties,Dictionary)
public void start(java.util.List<BundleReference> bundles,
java.util.Properties properties,
java.util.Dictionary config,
JavaRunner runner)
throws PlatformException
Platform
start in interface Platformbundles - a list of bundles to be included in the target platform; optionalproperties - platform properties to be available in the started platform; optionalconfig - service configuration propertiesrunner - an external service to run Java programs
PlatformException - if something goes wrongPlatform.start(java.util.List,java.util.Properties,Dictionary,JavaRunner)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||