ruper2/src/java/core/org/krysalis/ruper/impl ReferenceManager.java,1.7,1.8

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/impl
In directory sc8-pr-cvs1:/tmp/cvs-serv14844/src/java/core/org/krysalis/ruper/impl

Modified Files:
	ReferenceManager.java 
Log Message:
attribute object handling added - needs testing

Index: ReferenceManager.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/impl/ReferenceManager.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** ReferenceManager.java	11 Sep 2003 14:33:31 -0000	1.7
--- ReferenceManager.java	11 Sep 2003 19:56:19 -0000	1.8
***************
*** 14,17 ****
--- 14,18 ----
  import org.krysalis.ruper.util.reference.ReferenceTable;
  import org.krysalis.ruper.util.reference.Referenceable;
+ import org.krysalis.ruper.util.text.MessageConstants;
  import org.krysalis.ruper.util.text.Messages;
  import org.krysalis.version.util.debug.DebugUtils;
***************
*** 98,102 ****
  	}
  
! 	public static Object createReferenceObject(
  		Class clazz,
  		String tagId,
--- 99,103 ----
  	}
  
! 	public static Object createObject(
  		Class clazz,
  		String tagId,
***************
*** 112,118 ****
  				idArgumentConstructor.setAccessible(true);
  				reference = idArgumentConstructor.newInstance(new Object[] { tagId });
- 				
- 				//add the object to the reference table
- 				createReference((Referenceable)reference);
  			}
  			else
--- 113,116 ----
***************
*** 124,131 ****
  		{
  			Logger.getLog().error(
! 				Messages.getString("CREATE_REFERENCE_ERROR"),
  				exp);
  		}
  
  		return reference;
  	}
--- 122,140 ----
  		{
  			Logger.getLog().error(
! 				Messages.getString(MessageConstants.CREATE_OBJECT_ERROR),
  				exp);
  		}
  
+ 		return reference;
+ 	}
+ 
+ 	public static Object createReferenceObject(
+ 		Class clazz,
+ 		String tagId,
+ 		String refId)
+ 	{
+ 		Object reference = createObject(clazz, tagId, refId);
+ 		//add the object to the reference table
+ 		createReference((Referenceable)reference);
  		return reference;
  	}




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.