|
||||||||||
| 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 Contextpublic Context setCommandLine(CommandLine commandLine)
setCommandLine in interface ContextcommandLine - a command line
public Configuration getConfiguration()
getConfiguration in interface Contextpublic Context setConfiguration(Configuration configuration)
setConfiguration in interface Contextconfiguration - a configuration
public OptionResolver getOptionResolver()
getOptionResolver in interface Contextpublic Context setOptionResolver(OptionResolver optionResolver)
setOptionResolver in interface ContextoptionResolver - an option resolver
public org.apache.felix.framework.ServiceRegistry getServiceRegistry()
getServiceRegistry in interface Contextpublic Context setServiceRegistry(org.apache.felix.framework.ServiceRegistry serviceRegistry)
setServiceRegistry in interface ContextserviceRegistry - a service registry
public org.apache.felix.framework.util.EventDispatcher getEventDispatcher()
getEventDispatcher in interface Contextpublic Context setEventDispatcher(org.apache.felix.framework.util.EventDispatcher dispatcher)
setEventDispatcher in interface Contextdispatcher - an event dispatcher
public Context addBundle(RunnerBundle bundle)
addBundle in interface Contextbundle - a runner bundle to add
public java.util.List<RunnerBundle> getBundles()
getBundles in interface Contextpublic Context setSystemProperties(java.util.Properties properties)
setSystemProperties in interface Contextproperties - 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 | |||||||||