public class ServerContextMain extends java.lang.Object implements ServerContext
Constructor and Description |
---|
ServerContextMain(ServerModel model,
BeanDirectory componentRegistry)
A constructor for the top most server
context.
|
Modifier and Type | Method and Description |
---|---|
ServerContext |
addChild(java.lang.Object child)
Add a child component to the context.
|
Address |
getAddress()
The address.
|
BeanDirectory |
getBeanDirectory()
Get the bean directory that the component this is the context for
belongs to.
|
ConsoleArchiver |
getConsoleArchiver()
Get the console archiver for the component this is the context for.
|
LogArchiver |
getLogArchiver()
Get the log archiver for the component this is the context for.
|
ServerModel |
getModel()
Get the model.
|
ServerId |
getServerId()
The server id.
|
public ServerContextMain(ServerModel model, BeanDirectory componentRegistry)
public ServerContext addChild(java.lang.Object child)
ServerContext
addChild
in interface ServerContext
child
- A child.public ServerModel getModel()
ServerContext
getModel
in interface ServerContext
public LogArchiver getLogArchiver()
ServerContext
getLogArchiver
in interface ServerContext
public ConsoleArchiver getConsoleArchiver()
ServerContext
getConsoleArchiver
in interface ServerContext
public ServerId getServerId()
ServerContext
getServerId
in interface ServerContext
public Address getAddress()
ServerContext
getAddress
in interface ServerContext
public BeanDirectory getBeanDirectory()
ServerContext
getBeanDirectory
in interface ServerContext