net.mchaplin.ioc.rmi
Class RmiServerFactory

java.lang.Object
  extended by net.mchaplin.ioc.component.DefaultComponentFactory
      extended by net.mchaplin.ioc.rmi.RmiServerFactory
All Implemented Interfaces:
ComponentFactoryI, ComponentI

public class RmiServerFactory
extends DefaultComponentFactory
implements ComponentFactoryI

Use the 'Hollywood Principle : don't call me, i'll call you

Author:
mchaplin@users.sourceforge.net

Field Summary
 
Fields inherited from class net.mchaplin.ioc.component.DefaultComponentFactory
container, log
 
Fields inherited from interface net.mchaplin.ioc.component.ComponentI
CMP_I
 
Constructor Summary
RmiServerFactory(Container ctx, ContainerI aContainer)
           
 
Method Summary
 ContainerI getContainer()
          Provide component dependencies lookup facility
 void reset()
          Provide facility for runtime component redeployment
 ComponentI retrieveInstance()
          Retrieve an instance of Component created by this factory.
 void setContainer(ContainerI container)
          Dependency injection setter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmiServerFactory

public RmiServerFactory(Container ctx,
                        ContainerI aContainer)
Method Detail

retrieveInstance

public ComponentI retrieveInstance()
Description copied from interface: ComponentFactoryI
Retrieve an instance of Component created by this factory.

Specified by:
retrieveInstance in interface ComponentFactoryI
Returns:
an instance of ComponentI

getContainer

public ContainerI getContainer()
Description copied from interface: ComponentI
Provide component dependencies lookup facility

Specified by:
getContainer in interface ComponentI
Overrides:
getContainer in class DefaultComponentFactory
Returns:
the Container that holds this Component.

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 DefaultComponentFactory

setContainer

public void setContainer(ContainerI container)
Description copied from interface: ComponentI
Dependency injection setter

Specified by:
setContainer in interface ComponentI
Overrides:
setContainer in class DefaultComponentFactory


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