org.cogchar.app.puma.boot
Class PumaBooter

java.lang.Object
  extended by org.appdapter.core.log.BasicDebugger
      extended by org.cogchar.app.puma.boot.PumaBooter
All Implemented Interfaces:
org.appdapter.core.log.Loggable

public class PumaBooter
extends org.appdapter.core.log.BasicDebugger

Author:
Stu B.

Nested Class Summary
 class PumaBooter.BootResult
           
static class PumaBooter.BootStatus
           
 
Field Summary
 
Fields inherited from interface org.appdapter.core.log.Loggable
IMPO_HI, IMPO_HIHI, IMPO_LO, IMPO_LOLO, IMPO_MAX, IMPO_MIN, IMPO_NORM
 
Constructor Summary
PumaBooter()
           
 
Method Summary
 PumaBooter.BootResult bootUnderOSGi(org.osgi.framework.BundleContext bundleCtx, PumaContextMediator mediator)
          Public entry point for the PUMA application system when running in an OSGi environment.
protected  void notifyVWorldWindowClosed()
           
protected  void pumaBootUnsafeUnderOSGi(org.osgi.framework.BundleContext bundleCtx, PumaContextMediator mediator)
          Protected initialization of an OSGi context - the guts.
protected  void shutdownOSGiContainer(org.osgi.framework.BundleContext bc)
           
 
Methods inherited from class org.appdapter.core.log.BasicDebugger
checkDebugImportance, forceLog4jConfig, getLogger, getLoggerForClass, isLoggerUsable, logDebug, logError, logError, logInfo, logInfo, logInfoEvent, logWarning, logWarning, logWithException, setDebugImportanceThreshold, setLogger, useLoggerForClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PumaBooter

public PumaBooter()
Method Detail

bootUnderOSGi

public PumaBooter.BootResult bootUnderOSGi(org.osgi.framework.BundleContext bundleCtx,
                                           PumaContextMediator mediator)
Public entry point for the PUMA application system when running in an OSGi environment. Presumes that an SLF4J logging binding is already in place. Normally this is *not* called directly from another bundle's activator. Instead, it is called after all initial bundles (for your application) are loaded, which is signaled in a FrameworkEvent

Parameters:
bundleCtx - - an OSGi bundle
mediator - - users customize this object to configure/influence the boot process.
Returns:
a BootResult indicating the status of boot attempt. No app data is passed here.

pumaBootUnsafeUnderOSGi

protected void pumaBootUnsafeUnderOSGi(org.osgi.framework.BundleContext bundleCtx,
                                       PumaContextMediator mediator)
                                throws Throwable
Protected initialization of an OSGi context - the guts. Normally this is called from bootUnderOSGi, which is called from a FrameworkStarted-EventHandler (NOT the BundleActivator.start() method !) of some "top" application bundle client, e.g. Friendularity CCRK_DemoActivator. That client controls our boot process through supplied mediator.

Parameters:
bundleCtx -
mediator -
Throws:
Throwable

notifyVWorldWindowClosed

protected void notifyVWorldWindowClosed()

shutdownOSGiContainer

protected void shutdownOSGiContainer(org.osgi.framework.BundleContext bc)


Copyright © 2010-2013. All Rights Reserved.