org.jboss.bootstrap.impl.mc.server
Class AbstractMCServerBase<K extends org.jboss.bootstrap.spi.mc.server.MCBasedServer<K,T>,T extends org.jboss.bootstrap.spi.mc.config.MCBasedServerConfig<T>>

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.jboss.bootstrap.impl.base.server.AbstractServer<K,T>
          extended by org.jboss.bootstrap.impl.mc.server.AbstractMCServerBase<K,T>
All Implemented Interfaces:
NotificationBroadcaster, NotificationEmitter, org.jboss.bootstrap.spi.mc.server.MCBasedServer<K,T>, org.jboss.bootstrap.spi.server.Server<K,T>
Direct Known Subclasses:
MCServerImpl

public abstract class AbstractMCServerBase<K extends org.jboss.bootstrap.spi.mc.server.MCBasedServer<K,T>,T extends org.jboss.bootstrap.spi.mc.config.MCBasedServerConfig<T>>
extends org.jboss.bootstrap.impl.base.server.AbstractServer<K,T>
implements org.jboss.bootstrap.spi.mc.server.MCBasedServer<K,T>

AbstractMCServerBase Microcontainer implementation of a Server.

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

Field Summary
 
Fields inherited from interface org.jboss.bootstrap.spi.server.Server
START_NOTIFICATION_TYPE, STOP_NOTIFICATION_TYPE
 
Constructor Summary
protected AbstractMCServerBase(Class<K> actualClass)
          Constructor Creates the server with no default configuration
protected AbstractMCServerBase(Class<K> actualClass, T config)
          Constructor Creates the server from the specified configuration
 
Method Summary
protected  void doInitialize()
           
protected  void doShutdown()
           
protected  void doStart()
           
protected  org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap getBootstrap()
           
 T getConfiguration()
           
 Map<String,org.jboss.kernel.spi.deployment.KernelDeployment> getDeployments()
           
 org.jboss.kernel.Kernel getKernel()
           
 void start()
           
 
Methods inherited from class org.jboss.bootstrap.impl.base.server.AbstractServer
addBootstrap, covarientReturn, getActualClass, getConfigInitializer, getDefaultServerConfigClass, getServerInitializer, getState, getValidator, initialize, registerEventHandler, registerEventHandler, registerEventHandler, registerEventHandlers, removeBootstrap, sendNotificationWithCurrentTimeUserData, sendStartJmxNotification, sendStopJmxNotification, setConfigInitializer, setConfiguration, setServerInitializer, setValidator, shutdown, shutdownBootstraps, startBootstraps, unregisterEventHandler
 
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.Server
addBootstrap, getConfigInitializer, getServerInitializer, getState, getValidator, initialize, registerEventHandler, registerEventHandler, registerEventHandler, registerEventHandlers, removeBootstrap, setConfigInitializer, setConfiguration, setServerInitializer, setValidator, shutdown, unregisterEventHandler
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Constructor Detail

AbstractMCServerBase

protected AbstractMCServerBase(Class<K> actualClass)
Constructor Creates the server with no default configuration


AbstractMCServerBase

protected AbstractMCServerBase(Class<K> actualClass,
                               T config)
Constructor Creates the server from the specified configuration

Parameters:
config -
Method Detail

getConfiguration

public final T getConfiguration()
Specified by:
getConfiguration in interface org.jboss.bootstrap.spi.server.Server<K extends org.jboss.bootstrap.spi.mc.server.MCBasedServer<K,T>,T extends org.jboss.bootstrap.spi.mc.config.MCBasedServerConfig<T>>
Overrides:
getConfiguration in class org.jboss.bootstrap.impl.base.server.AbstractServer<K extends org.jboss.bootstrap.spi.mc.server.MCBasedServer<K,T>,T extends org.jboss.bootstrap.spi.mc.config.MCBasedServerConfig<T>>

getKernel

public org.jboss.kernel.Kernel getKernel()
Specified by:
getKernel in interface org.jboss.bootstrap.spi.mc.server.MCBasedServer<K extends org.jboss.bootstrap.spi.mc.server.MCBasedServer<K,T>,T extends org.jboss.bootstrap.spi.mc.config.MCBasedServerConfig<T>>

getDeployments

public Map<String,org.jboss.kernel.spi.deployment.KernelDeployment> getDeployments()
Specified by:
getDeployments in interface org.jboss.bootstrap.spi.mc.server.MCBasedServer<K extends org.jboss.bootstrap.spi.mc.server.MCBasedServer<K,T>,T extends org.jboss.bootstrap.spi.mc.config.MCBasedServerConfig<T>>

doShutdown

protected void doShutdown()
                   throws Exception
Specified by:
doShutdown in class org.jboss.bootstrap.impl.base.server.AbstractServer<K extends org.jboss.bootstrap.spi.mc.server.MCBasedServer<K,T>,T extends org.jboss.bootstrap.spi.mc.config.MCBasedServerConfig<T>>
Throws:
Exception

doInitialize

protected void doInitialize()
                     throws IllegalStateException,
                            org.jboss.bootstrap.spi.config.InvalidConfigurationException,
                            org.jboss.bootstrap.spi.lifecycle.LifecycleEventException
Overrides:
doInitialize in class org.jboss.bootstrap.impl.base.server.AbstractServer<K extends org.jboss.bootstrap.spi.mc.server.MCBasedServer<K,T>,T extends org.jboss.bootstrap.spi.mc.config.MCBasedServerConfig<T>>
Throws:
IllegalStateException
org.jboss.bootstrap.spi.config.InvalidConfigurationException
org.jboss.bootstrap.spi.lifecycle.LifecycleEventException

start

public void start()
           throws IllegalStateException,
                  Exception
Specified by:
start in interface org.jboss.bootstrap.spi.server.Server<K extends org.jboss.bootstrap.spi.mc.server.MCBasedServer<K,T>,T extends org.jboss.bootstrap.spi.mc.config.MCBasedServerConfig<T>>
Overrides:
start in class org.jboss.bootstrap.impl.base.server.AbstractServer<K extends org.jboss.bootstrap.spi.mc.server.MCBasedServer<K,T>,T extends org.jboss.bootstrap.spi.mc.config.MCBasedServerConfig<T>>
Throws:
IllegalStateException
Exception

doStart

protected void doStart()
                throws Exception
Specified by:
doStart in class org.jboss.bootstrap.impl.base.server.AbstractServer<K extends org.jboss.bootstrap.spi.mc.server.MCBasedServer<K,T>,T extends org.jboss.bootstrap.spi.mc.config.MCBasedServerConfig<T>>
Throws:
Exception

getBootstrap

protected final org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap getBootstrap()
Returns:
the bootstrap


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