org.oddjob.jmx.server
Class ServerContextImpl

java.lang.Object
  extended by org.oddjob.jmx.server.ServerContextImpl
All Implemented Interfaces:
ServerContext

public class ServerContextImpl
extends Object
implements ServerContext

Provide a server context which can be passed down through the nodes of the server and used to look up useful things.

Author:
Rob Gordon.

Constructor Summary
ServerContextImpl(Object root, ServerModel model, BeanDirectory componentRegistry)
          A constructor for the top most server context.
 
Method Summary
 ServerContext addChild(Object child)
           
 Address getAddress()
           
 BeanDirectory getBeanDirectory()
           
 Object getComponent()
           
 ConsoleArchiver getConsoleArchiver()
           
 LogArchiver getLogArchiver()
           
 ServerModel getModel()
           
 ServerId getServerId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerContextImpl

public ServerContextImpl(Object root,
                         ServerModel model,
                         BeanDirectory componentRegistry)
A constructor for the top most server context.

Method Detail

addChild

public ServerContext addChild(Object child)
                       throws ServerLoopBackException
Specified by:
addChild in interface ServerContext
Throws:
ServerLoopBackException

getComponent

public Object getComponent()

getModel

public ServerModel getModel()
Specified by:
getModel in interface ServerContext

getLogArchiver

public LogArchiver getLogArchiver()
Specified by:
getLogArchiver in interface ServerContext

getConsoleArchiver

public ConsoleArchiver getConsoleArchiver()
Specified by:
getConsoleArchiver in interface ServerContext

getServerId

public ServerId getServerId()
Specified by:
getServerId in interface ServerContext

getAddress

public Address getAddress()
Specified by:
getAddress in interface ServerContext

getBeanDirectory

public BeanDirectory getBeanDirectory()
Specified by:
getBeanDirectory in interface ServerContext