|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.runner.ContextImpl
public class ContextImpl
Bean like implementation of context. TODO add unit testing
Constructor Summary | |
---|---|
ContextImpl()
Create a new Context implementation. |
Method Summary | |
---|---|
Context |
addBundle(RunnerBundle bundle)
Adds a runner bundle to the list of bunsles to be installed in the platform |
java.util.List<RunnerBundle> |
getBundles()
Returns a list of runner bundles to be installed. |
CommandLine |
getCommandLine()
Returns the command line in use. |
Configuration |
getConfiguration()
Returns the configuration in use. |
org.apache.felix.framework.util.EventDispatcher |
getEventDispatcher()
Returns the event dispatcher in use. |
OptionResolver |
getOptionResolver()
Returns the option resolver in use. |
org.apache.felix.framework.ServiceRegistry |
getServiceRegistry()
Returns the service registry in use. |
java.util.Properties |
getSystemProperties()
Returns the system properties to be used for starting the platform. |
Context |
setCommandLine(CommandLine commandLine)
Sets the command line in use. |
Context |
setConfiguration(Configuration configuration)
Sets the configuration in use. |
Context |
setEventDispatcher(org.apache.felix.framework.util.EventDispatcher dispatcher)
Sets the event dispatcher in use. |
Context |
setOptionResolver(OptionResolver optionResolver)
Sets the option resolver in use. |
Context |
setServiceRegistry(org.apache.felix.framework.ServiceRegistry serviceRegistry)
Sets the service registry in use. |
Context |
setSystemProperties(java.util.Properties properties)
Sets the system properties that will be used when starting the platform. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextImpl()
Method Detail |
---|
public CommandLine getCommandLine()
getCommandLine
in interface Context
public Context setCommandLine(CommandLine commandLine)
setCommandLine
in interface Context
commandLine
- a command line
public Configuration getConfiguration()
getConfiguration
in interface Context
public Context setConfiguration(Configuration configuration)
setConfiguration
in interface Context
configuration
- a configuration
public OptionResolver getOptionResolver()
getOptionResolver
in interface Context
public Context setOptionResolver(OptionResolver optionResolver)
setOptionResolver
in interface Context
optionResolver
- an option resolver
public org.apache.felix.framework.ServiceRegistry getServiceRegistry()
getServiceRegistry
in interface Context
public Context setServiceRegistry(org.apache.felix.framework.ServiceRegistry serviceRegistry)
setServiceRegistry
in interface Context
serviceRegistry
- a service registry
public org.apache.felix.framework.util.EventDispatcher getEventDispatcher()
getEventDispatcher
in interface Context
public Context setEventDispatcher(org.apache.felix.framework.util.EventDispatcher dispatcher)
setEventDispatcher
in interface Context
dispatcher
- an event dispatcher
public Context addBundle(RunnerBundle bundle)
addBundle
in interface Context
bundle
- a runner bundle to add
public java.util.List<RunnerBundle> getBundles()
getBundles
in interface Context
public Context setSystemProperties(java.util.Properties properties)
setSystemProperties
in interface Context
properties
- java Properties
public java.util.Properties getSystemProperties()
getSystemProperties
in interface Context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |