File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Referenceable Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Referenceable Interface" Watch "Referenceable Interface" New topic
Author

Referenceable Interface

Ramu Ramaiah
Greenhorn

Joined: Apr 30, 2006
Posts: 9
Hi,

Can somebody explain the purpose of Referenceable interface and it's significance?

Thanks,
Ramu
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
The API can. What didn't you understand about what the API says?


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
dhwani mathur
Ranch Hand

Joined: May 08, 2007
Posts: 621
ok,i do not have much idea.
Referenceable Interface is implemented by a object,it provides a reference to itself.
Objects which are not bound to the " naming system " can implement it ,and main "significance of Referenceable interface" is what the "object actualy references to" can be found. Please refer to the below shown link i hope you wil get some information atleast.
http://java.sun.com/j2se/1.4.2/docs/api/javax/naming/Referenceable.html
dhwani mathur
Ranch Hand

Joined: May 08, 2007
Posts: 621
ok,i do not have much idea.
Referenceable Interface is implemented by a object,it provides a reference to itself.
Objects which are not bound to the " naming system " can implement it ,and main "significance of Referenceable interface" is what the "object actualy references to" can be found. Please refer to the below shown link i hope you wil get some information atleast.
http://java.sun.com/j2se/1.4.2/docs/api/javax/naming/Referenceable.html
Ramu Ramaiah
Greenhorn

Joined: Apr 30, 2006
Posts: 9
I have gone through the Interface description in Java API documentation. I did not understand the whole picture, what is the significance of the interface.

The documentation says "This interface is implemented by an object that can provide a Reference to itself". If an object wants to provide a reference to itself, one can always have a object of the same type as a member and store a this reference right? Why should we have to implement this interface?
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
It doesn't return an ordinary object reference to itself, it returns a javax.naming.Reference.

Basically, if you're not doing stuff using the javax.naming package, then this interface is not relevant to you. I have not used javax.naming, so I can't help further.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Referenceable Interface