net.mchaplin.ioc.rmi
Class RmiServer

java.lang.Object
  extended by net.mchaplin.commons.WmindObject
      extended by net.mchaplin.ioc.component.DefaultComponent
          extended by net.mchaplin.ioc.rmi.RmiServer
All Implemented Interfaces:
ComponentI

public class RmiServer
extends DefaultComponent

Bind & manage RmiServices into the RMI Registry RmiServices instances are registered in a DefaultContainer instance

Author:
mchaplin@users.sourceforge.net

Field Summary
static java.lang.String RMI_SERVICE_CONTAINER
           
 
Fields inherited from class net.mchaplin.ioc.component.DefaultComponent
container
 
Fields inherited from class net.mchaplin.commons.WmindObject
EX_CAUSE, EX_STACK, log, METHOD_CALL, propertyHelper, STACK_PREFIX
 
Fields inherited from interface net.mchaplin.ioc.component.ComponentI
CMP_I
 
Constructor Summary
RmiServer(RmiServerConfiguration config, ContainerI container)
           
 
Method Summary
 void bindService(RmiService rmiService)
          Bind an RmiService instance to RMI Registry
 java.lang.String getRegistryState()
           
 RmiServerConfiguration getServerConfig()
           
 ContainerI getServiceContainer()
           
 void reset()
          Provide facility for runtime component redeployment
 void setServerConfig(RmiServerConfiguration serverConfig)
           
 void setServiceContainer(DefaultContainer serviceContainer)
           
 void startServer()
           
 
Methods inherited from class net.mchaplin.ioc.component.DefaultComponent
getContainer, setContainer
 
Methods inherited from class net.mchaplin.commons.WmindObject
printInheritance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RMI_SERVICE_CONTAINER

public static final java.lang.String RMI_SERVICE_CONTAINER
See Also:
Constant Field Values
Constructor Detail

RmiServer

public RmiServer(RmiServerConfiguration config,
                 ContainerI container)
Method Detail

startServer

public void startServer()
Parameters:
config -

getRegistryState

public java.lang.String getRegistryState()

reset

public void reset()
Description copied from interface: ComponentI
Provide facility for runtime component redeployment

Specified by:
reset in interface ComponentI
Overrides:
reset in class DefaultComponent
See Also:
ComponentI.reset()

bindService

public void bindService(RmiService rmiService)
Bind an RmiService instance to RMI Registry

Parameters:
rmiService - instance to bind

getServiceContainer

public ContainerI getServiceContainer()
Returns:
Returns the serviceContainer.

setServiceContainer

public void setServiceContainer(DefaultContainer serviceContainer)
Parameters:
serviceContainer - The serviceContainer to set.

getServerConfig

public RmiServerConfiguration getServerConfig()
Returns:
Returns the serverConfig.

setServerConfig

public void setServerConfig(RmiServerConfiguration serverConfig)
Parameters:
serverConfig - The serverConfig to set.


Copyright © 2004-2005 mchaplin.net. All Rights Reserved.