org.ow2.jonas.launcher.felix
Class JOnAS

java.lang.Object
  extended by org.ow2.jonas.launcher.felix.JOnAS

public class JOnAS
extends Object

JOnAS Running on OSGi/Felix.

Author:
Guillaume Sauthier

Constructor Summary
JOnAS(boolean forceCleanUp)
          Creates a new configured framework instance.
 
Method Summary
protected  IConfigurationProvider getConfigurationProvider()
           
protected  void initializeSystemProperties()
          Initialize required System properties (using reasonable default values when needed).
static void main(String[] args)
          Start a new JOnAS.
protected  void setDefaultPropertyIfNotSet(String key, String def)
          If the property was already set, do not change its value, otherwise, use the default.
 void start()
          Start JOnAS on Felix.
protected  void startTransient(org.osgi.framework.Bundle bundle)
          The bundle start operation is transient for the given bundle.
protected  void startTransientBundles()
          The bundle start operation is transient for TUI and GUI bundles.
 void stop()
          Stop JOnAS.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOnAS

public JOnAS(boolean forceCleanUp)
      throws Exception
Creates a new configured framework instance.

Parameters:
forceCleanUp - true if cache directory must be deleted.
Throws:
Exception - cannot create the internal gateway.
Method Detail

start

public void start()
           throws Exception
Start JOnAS on Felix.

Throws:
Exception - Thrown if the start fails

stop

public void stop()
          throws Exception
Stop JOnAS.

Throws:
Exception - Thrown if the stop fails

getConfigurationProvider

protected IConfigurationProvider getConfigurationProvider()
Returns:
a new IConfigurationProvider.

main

public static void main(String[] args)
                 throws Exception
Start a new JOnAS.

Parameters:
args - not used
Throws:
Exception - if something failed

initializeSystemProperties

protected void initializeSystemProperties()
Initialize required System properties (using reasonable default values when needed).


setDefaultPropertyIfNotSet

protected void setDefaultPropertyIfNotSet(String key,
                                          String def)
If the property was already set, do not change its value, otherwise, use the default.

Parameters:
key - property name
def - default property value

startTransientBundles

protected void startTransientBundles()
                              throws org.osgi.framework.BundleException
The bundle start operation is transient for TUI and GUI bundles.

Throws:
org.osgi.framework.BundleException - If bundles startup fails

startTransient

protected void startTransient(org.osgi.framework.Bundle bundle)
                       throws org.osgi.framework.BundleException
The bundle start operation is transient for the given bundle.

Throws:
org.osgi.framework.BundleException - If bundle startup fails


Copyright © 2010 OW2 Consortium. All Rights Reserved.