org.jboss.bootstrap.microcontainer
Class ServerImpl

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.jboss.bootstrap.AbstractServerImpl
          extended by org.jboss.bootstrap.microcontainer.ServerImpl
All Implemented Interfaces:
NotificationBroadcaster, NotificationEmitter, MCServer, Server, ServerProcess

public class ServerImpl
extends AbstractServerImpl
implements MCServer

A Server implementation that bootstraps an MC kernel based on the beans deployments referenced by a bootstrap.xml descriptor.

Version:
$Revision: 84690 $
Author:
Adrian Brock, Ales Justin, Scott.Stark@jboss.org

Field Summary
static String BOOTSTRAP_XML_NAME
          The bootstrap file
 
Fields inherited from class org.jboss.bootstrap.AbstractServerImpl
log
 
Fields inherited from interface org.jboss.bootstrap.spi.Server
START_NOTIFICATION_TYPE, STOP_NOTIFICATION_TYPE
 
Constructor Summary
ServerImpl()
           
 
Method Summary
protected  void doShutdown()
          Override to perform the shutdown
protected  void doStart(org.jboss.util.StopWatch watch)
          Override to perform the start operations
 Map<String,org.jboss.kernel.spi.deployment.KernelDeployment> getDeployments()
          Get the kernel deployments
 org.jboss.kernel.Kernel getKernel()
          Get the kernel
 
Methods inherited from class org.jboss.bootstrap.AbstractServerImpl
addBootstrap, exit, exit, getBuildDate, getBuildID, getBuildJVM, getBuildNumber, getBuildOS, getConfig, getMetaData, getStartDate, getVersion, getVersionName, getVersionNumber, halt, halt, init, init, isInShutdown, isStarted, removeBootstrap, runFinalization, runGarbageCollector, setMetaData, shutdown, shutdownServer, start, traceInstructions, traceMethodCalls
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.bootstrap.spi.Server
getBuildDate, getBuildID, getBuildJVM, getBuildNumber, getBuildOS, getConfig, getMetaData, getStartDate, getVersion, getVersionName, getVersionNumber, init, init, isInShutdown, isStarted, shutdown, start
 
Methods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Field Detail

BOOTSTRAP_XML_NAME

public static String BOOTSTRAP_XML_NAME
The bootstrap file

Constructor Detail

ServerImpl

public ServerImpl()
Method Detail

getKernel

public org.jboss.kernel.Kernel getKernel()
Get the kernel

Specified by:
getKernel in interface MCServer
Returns:
the kernel

getDeployments

public Map<String,org.jboss.kernel.spi.deployment.KernelDeployment> getDeployments()
Get the kernel deployments

Specified by:
getDeployments in interface MCServer
Returns:
the kernel deployments

doStart

protected void doStart(org.jboss.util.StopWatch watch)
                throws Throwable
Description copied from class: AbstractServerImpl
Override to perform the start operations

Specified by:
doStart in class AbstractServerImpl
Parameters:
watch - the stop watch
Throws:
Throwable - for any error

doShutdown

protected void doShutdown()
Description copied from class: AbstractServerImpl
Override to perform the shutdown

Specified by:
doShutdown in class AbstractServerImpl


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.