org.eclipse.corona.core
Class RuntimeContext

java.lang.Object
  extended by org.eclipse.corona.core.RuntimeContext
All Implemented Interfaces:
IRuntimeContext

public class RuntimeContext
extends java.lang.Object
implements IRuntimeContext


Field Summary
 
Fields inherited from interface org.eclipse.corona.core.IRuntimeContext
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, RuntimeContextEvent, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
RuntimeContext()
           
RuntimeContext(IRuntimeContext parent, java.lang.Object container)
           
RuntimeContext(IRuntimeContext parent, java.lang.Object container, java.lang.Object containerHome)
           
 
Method Summary
 org.osgi.framework.ServiceReference[] getAllServiceReferences(org.osgi.framework.BundleContext bc, java.lang.String clazz, java.lang.String filter)
           
 IManagedResource getContainer(java.lang.String containerUri)
          why do you need to pass a name for the container isn't there only one associated with the RuntimeContext ???
 IManagedResource getContainer(java.lang.String homeIdentifier, java.lang.String containerUri)
           
 IManagedContainerHome getContainerHome(java.lang.String name)
          what kind of name is this is it the name of qualified name of the Container ie.
 java.lang.Object getContainerObject()
           
static IRuntimeContext getRuntimeContext()
           
 java.lang.Object getService(org.osgi.framework.BundleContext bc, org.osgi.framework.ServiceReference reference)
           
 org.osgi.framework.ServiceReference getServiceReference(org.osgi.framework.BundleContext bc, java.lang.String clazz)
           
 org.osgi.framework.ServiceReference[] getServiceReferences(org.osgi.framework.BundleContext bc, java.lang.String clazz, java.lang.String filter)
           
 int getState()
          what is this???
 org.osgi.framework.ServiceRegistration registerService(org.osgi.framework.BundleContext bc, java.lang.String[] clazzes, java.lang.Object service, java.util.Dictionary properties)
           
 org.osgi.framework.ServiceRegistration registerService(org.osgi.framework.BundleContext bc, java.lang.String clazz, java.lang.Object service, java.util.Dictionary properties)
           
 void start()
           
 void stop()
           
 boolean ungetService(org.osgi.framework.BundleContext bc, org.osgi.framework.ServiceReference reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeContext

public RuntimeContext()

RuntimeContext

public RuntimeContext(IRuntimeContext parent,
                      java.lang.Object container)

RuntimeContext

public RuntimeContext(IRuntimeContext parent,
                      java.lang.Object container,
                      java.lang.Object containerHome)
Method Detail

getRuntimeContext

public static IRuntimeContext getRuntimeContext()

getState

public int getState()
what is this???

Specified by:
getState in interface IRuntimeContext

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface IRuntimeContext
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface IRuntimeContext
Throws:
java.lang.Exception

getContainerObject

public java.lang.Object getContainerObject()

getContainerHome

public IManagedContainerHome getContainerHome(java.lang.String name)
what kind of name is this is it the name of qualified name of the Container ie. org.eclipse.corona.server.container.project/Corona ??? and get it from the container how?

Specified by:
getContainerHome in interface IRuntimeContext

getContainer

public IManagedResource getContainer(java.lang.String containerUri)
why do you need to pass a name for the container isn't there only one associated with the RuntimeContext ???

Specified by:
getContainer in interface IRuntimeContext

getContainer

public IManagedResource getContainer(java.lang.String homeIdentifier,
                                     java.lang.String containerUri)
Specified by:
getContainer in interface IRuntimeContext

registerService

public org.osgi.framework.ServiceRegistration registerService(org.osgi.framework.BundleContext bc,
                                                              java.lang.String[] clazzes,
                                                              java.lang.Object service,
                                                              java.util.Dictionary properties)
Specified by:
registerService in interface IRuntimeContext

registerService

public org.osgi.framework.ServiceRegistration registerService(org.osgi.framework.BundleContext bc,
                                                              java.lang.String clazz,
                                                              java.lang.Object service,
                                                              java.util.Dictionary properties)
Specified by:
registerService in interface IRuntimeContext

getServiceReference

public org.osgi.framework.ServiceReference getServiceReference(org.osgi.framework.BundleContext bc,
                                                               java.lang.String clazz)
Specified by:
getServiceReference in interface IRuntimeContext

getService

public java.lang.Object getService(org.osgi.framework.BundleContext bc,
                                   org.osgi.framework.ServiceReference reference)
Specified by:
getService in interface IRuntimeContext

ungetService

public boolean ungetService(org.osgi.framework.BundleContext bc,
                            org.osgi.framework.ServiceReference reference)
Specified by:
ungetService in interface IRuntimeContext

getServiceReferences

public org.osgi.framework.ServiceReference[] getServiceReferences(org.osgi.framework.BundleContext bc,
                                                                  java.lang.String clazz,
                                                                  java.lang.String filter)
                                                           throws org.osgi.framework.InvalidSyntaxException
Specified by:
getServiceReferences in interface IRuntimeContext
Throws:
org.osgi.framework.InvalidSyntaxException

getAllServiceReferences

public org.osgi.framework.ServiceReference[] getAllServiceReferences(org.osgi.framework.BundleContext bc,
                                                                     java.lang.String clazz,
                                                                     java.lang.String filter)
                                                              throws org.osgi.framework.InvalidSyntaxException
Specified by:
getAllServiceReferences in interface IRuntimeContext
Throws:
org.osgi.framework.InvalidSyntaxException

Copyright 2006 IBM Corporation and others.
All Rights Reserved.