|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.engine.core.system.boot.PentahoSystemBoot
public class PentahoSystemBoot
This class is designed to help embedded deployments start the Pentaho system.
PentahoSystemBoot
is a self-contained and very easy to configure platform initializer
which does not impose the use of configuration files on your filesystem. A booter instance
gives you the flexibility to configure and run the platform entirely in memory.
In general you will want to
PentahoSystemBoot
define(Class, Class)
variants
start()
@Before public void init() { PentahoSystemBoot booter = new PentahoSystemBoot(); //setup your required object definitions booter.define(ISolutionRepository.class, FileBasedSolutionRepository.class); //initialize the minimal platform booter.init(); }
Constructor Summary | |
---|---|
PentahoSystemBoot()
Creates a minimal ready-to-run platform. |
|
PentahoSystemBoot(String solutionPath)
Creates a minimal ready-to-run platform with a specified solution path. |
|
PentahoSystemBoot(String solutionPath,
IPentahoDefinableObjectFactory factory)
|
|
PentahoSystemBoot(String solutionPath,
String baseUrl)
|
|
PentahoSystemBoot(String solutionPath,
String baseUrl,
IPentahoDefinableObjectFactory factory)
|
Method Summary | |
---|---|
void |
addAdminAction(IPentahoPublisher adminAction)
Adds an administrative action to the system. |
void |
addLifecycleListener(IPentahoSystemListener lifecycleListener)
Adds a lifecycle listener. |
void |
addStartupAction(ISessionStartupAction startupAction)
Adds a strtup action to the system. |
PentahoSystemBoot |
define(Class<?> interfaceClass,
Class<?> implClass)
Define a locally scoped object (aka prototype scope -- unique instance for each request for the class) |
PentahoSystemBoot |
define(Class<?> interfaceClass,
Class<?> implClass,
IPentahoDefinableObjectFactory.Scope scope)
Define an arbitrarily scoped object |
PentahoSystemBoot |
define(String key,
Class<?> implClass)
Define a locally scoped object (aka prototype scope -- unique instance for each request for the class) |
PentahoSystemBoot |
define(String key,
Class<?> implClass,
IPentahoDefinableObjectFactory.Scope scope)
Define an arbitrarily scoped object |
PentahoSystemBoot |
define(String key,
String implClassName,
IPentahoDefinableObjectFactory.Scope scope)
Define an arbitrarily scoped object |
IPentahoObjectFactory |
getFactory()
Gets the object factory for the Pentaho platform |
String |
getFilePath()
Sets the file path that will be used to get to file-based resources |
List<IPentahoSystemListener> |
getLifecycleListeners()
Returns the list of lifecycle listeners that will be used. |
ISystemSettings |
getSettingsProvider()
Gets the system settings object that will be used by the Pentaho platform |
List<ISessionStartupAction> |
getStartupActions()
Returns the list of startup actions. |
void |
init()
Deprecated. use start() . This method is hanging around for backward compatibility
with MicroPlatform |
boolean |
isInitialized()
Returns true if the Pentaho platform has initialized successfully. |
void |
setAdminActions(List<IPentahoPublisher> adminActions)
|
void |
setBaseUrl(String baseUrl)
Sets the URL that the platform uses to generate paths to its own resources |
void |
setFactory(IPentahoObjectFactory factory)
Sets the object factory for the Pentaho platform, This defaults to the StandaloneObjectFactory |
void |
setFilePath(String filePath)
Sets the file path to be used to find configuration and content files If this is not set the current directory (.) is used. |
void |
setLifecycleListeners(List<IPentahoSystemListener> lifecycleListeners)
Returns the list of lifecycle listeners that will be used. |
void |
setSettingsProvider(ISystemSettings settingsProvider)
Sets the system settings object that will be used by the Pentaho platform |
void |
setStartupActions(List<ISessionStartupAction> startupActions)
Sets the list of startup actions These actions will be executed on system startup or on session creation. |
boolean |
start()
Starts the Pentaho platform, making it ready to process requests. |
boolean |
stop()
Stops the Pentaho platform |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PentahoSystemBoot()
public PentahoSystemBoot(String solutionPath)
solutionPath
- full path to the pentaho_solutions folderpublic PentahoSystemBoot(String solutionPath, String baseUrl)
public PentahoSystemBoot(String solutionPath, IPentahoDefinableObjectFactory factory)
public PentahoSystemBoot(String solutionPath, String baseUrl, IPentahoDefinableObjectFactory factory)
Method Detail |
---|
public String getFilePath()
public void setFilePath(String filePath)
filePath
- public void setBaseUrl(String baseUrl)
baseUrl
- public void init()
start()
. This method is hanging around for backward compatibility
with MicroPlatform
public boolean start() throws PlatformInitializationException
PlatformInitializationException
- if there was a problem initializing the platformpublic boolean stop()
public IPentahoObjectFactory getFactory()
public void setFactory(IPentahoObjectFactory factory)
public void addAdminAction(IPentahoPublisher adminAction)
adminAction
- public void setAdminActions(List<IPentahoPublisher> adminActions)
public void addLifecycleListener(IPentahoSystemListener lifecycleListener)
lifecycleListener
- public List<IPentahoSystemListener> getLifecycleListeners()
public void setLifecycleListeners(List<IPentahoSystemListener> lifecycleListeners)
public ISystemSettings getSettingsProvider()
public void setSettingsProvider(ISystemSettings settingsProvider)
public boolean isInitialized()
public List<ISessionStartupAction> getStartupActions()
public void setStartupActions(List<ISessionStartupAction> startupActions)
startupActions
- public void addStartupAction(ISessionStartupAction startupAction)
startupAction
- public PentahoSystemBoot define(String key, String implClassName, IPentahoDefinableObjectFactory.Scope scope)
key
- the key to retrieval of this objectimplClassName
- the actual type that is served back to you when requested.scope
- the scope of the object
PentahoSystemBoot
instance, for chaining
NoSuchMethodError
- if the object factory does not support runtime object definitionpublic PentahoSystemBoot define(Class<?> interfaceClass, Class<?> implClass, IPentahoDefinableObjectFactory.Scope scope)
interfaceClass
- the key to retrieval of this objectimplClass
- the actual type that is served back to you when requested.scope
- the scope of the object
PentahoSystemBoot
instance, for chaining
NoSuchMethodError
- if the object factory does not support runtime object definitionpublic PentahoSystemBoot define(String key, Class<?> implClass, IPentahoDefinableObjectFactory.Scope scope)
key
- the key to retrieval of this objectimplClass
- the actual type that is served back to you when requested.scope
- the scope of the object
PentahoSystemBoot
instance, for chaining
NoSuchMethodError
- if the object factory does not support runtime object definitionpublic PentahoSystemBoot define(Class<?> interfaceClass, Class<?> implClass)
interfaceClass
- the key to retrieval of this objectimplClass
- the actual type that is served back to you when requested.
MicroPlatform
instance, for chainingpublic PentahoSystemBoot define(String key, Class<?> implClass)
key
- the key to retrieval of this objectimplClass
- the actual type that is served back to you when requested.
MicroPlatform
instance, for chaining
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |