com.dyuproject.ioc.config
Class Reference

java.lang.Object
  extended by com.dyuproject.ioc.config.Reference

public final class Reference
extends Object

A configuration component from a json context file which allows a pojo to be referenced by an id String.

Author:
David Yu
Date created:
Feb 20, 2009

Field Summary
protected  Map<String,Object> _props
           
protected  Object _ref
           
 
Constructor Summary
Reference()
           
Reference(Object ref)
           
 
Method Summary
 Map<String,Object> getProps()
          Gets the properties of a referenced object to be able to set or override existing properties.
 Object getRef()
          Gets the object being referenced.
 void setProps(Map<String,Object> props)
          Sets the properties of a reference object which can set or override existing properties.
 void setRef(Object ref)
          Sets the object to reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ref

protected Object _ref

_props

protected Map<String,Object> _props
Constructor Detail

Reference

public Reference()

Reference

public Reference(Object ref)
Method Detail

getRef

public Object getRef()
Gets the object being referenced.


setRef

public void setRef(Object ref)
Sets the object to reference.


getProps

public Map<String,Object> getProps()
Gets the properties of a referenced object to be able to set or override existing properties.


setProps

public void setProps(Map<String,Object> props)
Sets the properties of a reference object which can set or override existing properties.



Copyright © 2008-2013. All Rights Reserved.