public class MainDelegate extends Object implements Launcher
Main
class is a simple Java Application which interprests
the command line and creates the Sling
launcher class and thus starts
the OSGi framework. In addition a shutdown thread is registered to ensure
proper shutdown on VM termination.
The supported command line options are:
org.apache.sling.osg.log.level
setting the
sling.properties
file.org.apache.sling.osg.log.file
setting the
sling.properties
file.sling.properties
and where files of Sling itself such as the
Apache Felix bundle archive or the JCR repository files are stored (default
sling).org.osgi.service.http.port
setting the
sling.properties
file.Constructor and Description |
---|
MainDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
setCommandLine(Map<String,String> args)
The commandline provided from the standalone launch case.
|
void |
setNotifiable(Notifiable notifiable)
The
Notifiable to notify on framework stop or update |
void |
setSlingHome(String slingHome)
Sets the sling.home to be used for starting the framework.
|
boolean |
start()
Starts the framework and returns
true if successfull. |
void |
stop()
Stops the framework.
|
public void setNotifiable(Notifiable notifiable)
Launcher
Notifiable
to notify on framework stop or updatesetNotifiable
in interface Launcher
public void setCommandLine(Map<String,String> args)
Launcher
setCommandLine
in interface Launcher
public void setSlingHome(String slingHome)
Launcher
null
argument before trying to
start the framework.setSlingHome
in interface Launcher
public boolean start()
Launcher
true
if successfull.Copyright © 2015 The Apache Software Foundation. All rights reserved.