|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.sling.launchpad.base.app.MainDelegate
public class MainDelegate
The 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 Summary | |
---|---|
MainDelegate()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MainDelegate()
Method Detail |
---|
public void setNotifiable(Notifiable notifiable)
Launcher
Notifiable
to notify on framework stop or update
setNotifiable
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.
start
in interface Launcher
public void stop()
Launcher
stop
in interface Launcher
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |