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  Notifiableto 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  trueif successfull. | 
| void | stop()Stops the framework. | 
public void setNotifiable(Notifiable notifiable)
LauncherNotifiable to notify on framework stop or updatesetNotifiable in interface Launcherpublic void setCommandLine(Map<String,String> args)
LaunchersetCommandLine in interface Launcherpublic void setSlingHome(String slingHome)
Launchernull argument before trying to
 start the framework.setSlingHome in interface Launcherpublic boolean start()
Launchertrue if successfull.Copyright © 2015 The Apache Software Foundation. All rights reserved.