org.ops4j.pax.runner
Interface Context

All Known Implementing Classes:
ContextImpl

public interface Context

Runner context. Holder for objects to be passed arround.

Since:
August 29, 2007
Author:
Alin Dreghiciu

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 eventDispatcher)
          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.
 

Method Detail

getCommandLine

CommandLine getCommandLine()
Returns the command line in use.

Returns:
a command line

setCommandLine

Context setCommandLine(CommandLine commandLine)
Sets the command line in use.

Parameters:
commandLine - a command line
Returns:
self, for fluent api.

getConfiguration

Configuration getConfiguration()
Returns the configuration in use.

Returns:
a configuration

setConfiguration

Context setConfiguration(Configuration configuration)
Sets the configuration in use.

Parameters:
configuration - a configuration
Returns:
self, for fluent api.

getOptionResolver

OptionResolver getOptionResolver()
Returns the option resolver in use.

Returns:
an option resolver

setOptionResolver

Context setOptionResolver(OptionResolver optionResolver)
Sets the option resolver in use.

Parameters:
optionResolver - an option resolver
Returns:
self, for fluent api.

getServiceRegistry

org.apache.felix.framework.ServiceRegistry getServiceRegistry()
Returns the service registry in use.

Returns:
a service registry

setServiceRegistry

Context setServiceRegistry(org.apache.felix.framework.ServiceRegistry serviceRegistry)
Sets the service registry in use.

Parameters:
serviceRegistry - a service registry
Returns:
self, for fluent api.

getEventDispatcher

org.apache.felix.framework.util.EventDispatcher getEventDispatcher()
Returns the event dispatcher in use.

Returns:
a event dispatcher

setEventDispatcher

Context setEventDispatcher(org.apache.felix.framework.util.EventDispatcher eventDispatcher)
Sets the event dispatcher in use.

Parameters:
eventDispatcher - an event dispatcher
Returns:
self, for fluent api.

addBundle

Context addBundle(RunnerBundle bundle)
Adds a runner bundle to the list of bunsles to be installed in the platform

Parameters:
bundle - a runner bundle to add
Returns:
self, for fluent api.

getBundles

java.util.List<RunnerBundle> getBundles()
Returns a list of runner bundles to be installed.

Returns:
a list of runner bundles

setSystemProperties

Context setSystemProperties(java.util.Properties properties)
Sets the system properties that will be used when starting the platform.

Parameters:
properties - java Properties
Returns:
self, for fluent api

getSystemProperties

java.util.Properties getSystemProperties()
Returns the system properties to be used for starting the platform.

Returns:
java Properties


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.