creating named objects...

Nicolas Barrera <[email protected]> Fri, 31 Dec 2004 01:19:12 -0300
Newsgroups gmane.comp.java.ozone.user
Message-ID <[email protected]>
sorry i m asking again...., i ve been searching all night 'bout how to
create a named object on the mail list and i d no luck...

i mean, i imagine it can be created through the
Databes.createObject(java.lang.Class type, int access,
java.lang.String objName)
method...

but my client app is trying to create a database object through the
factory... and there i got a
ImplFactory.create( [the params needed for constructor] )
method.. which do not specify object's name on creation... then i
can't use the objectForName(String) method to lookup :(

the client is using the Factory class to create an instance because i
found it quite difficult to figure out how do i need to pass the
constructor signature on the method...:

createObject(java.lang.String className, int access, java.lang.String
objName, java.lang.String sig, java.lang.Object[] args)

or the method...

createObject(java.lang.Class type, int access, java.lang.String
objName, java.lang.Class[] sig, java.lang.Object[] args)

i imagine the Object[] args... but not the sig...

hope you could help me out with this... :D

thanks in advance... (for your patience ;P)
c ya!


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt