biz.hammurapi.config
Class Reference

java.lang.Object
  extended by biz.hammurapi.config.Reference
All Implemented Interfaces:
Component, Wrapper

public class Reference
extends java.lang.Object
implements Wrapper, Component

This is a dynamic proxy wrapper for one component to obtain a reference to another.

Author:
Pavel Vlasov

Constructor Summary
Reference()
           
 
Method Summary
 java.lang.Object getMaster()
           
 void setOwner(java.lang.Object owner)
          Plugs the component into container and naming bus.
 void setPath(java.lang.String path)
          Path to the referenced component
 void setType(java.lang.String type)
          Interface which dynamic proxy shall implement.
 void start()
          Invoked by container before the first use.
 void stop()
          Invoked by container when component is not needed anymore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reference

public Reference()
Method Detail

getMaster

public java.lang.Object getMaster()
Specified by:
getMaster in interface Wrapper

setOwner

public void setOwner(java.lang.Object owner)
Description copied from interface: Component
Plugs the component into container and naming bus.

Specified by:
setOwner in interface Component

start

public void start()
           throws ConfigurationException
Description copied from interface: Component
Invoked by container before the first use. Component shall perform initialization in this method.

Specified by:
start in interface Component
Throws:
ConfigurationException

stop

public void stop()
          throws ConfigurationException
Description copied from interface: Component
Invoked by container when component is not needed anymore. Component shall perform cleanup in this method.

Specified by:
stop in interface Component
Throws:
ConfigurationException

setType

public void setType(java.lang.String type)
             throws java.lang.ClassNotFoundException
Interface which dynamic proxy shall implement.

Parameters:
type -
Throws:
java.lang.ClassNotFoundException

setPath

public void setPath(java.lang.String path)
Path to the referenced component

Parameters:
path -


Copyright © 2003 Hammurapi Group. All Rights Reserved.