[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on OzoneRemote usage



On Wed, 18 Apr 2001, Boris Boehlen wrote:
> Hello,
> 
> I'd like to use OzoneDB in one of my projects. To do this one question 
> has to be answered.
> 
> I must a have an interface which does not implement OzoneRemote, for 
> example:
> 
>     interface Node {
>        // Some methods
>     }
> 
> This interface will be used by my clients. My server provides a special 
> implementation for this node for SQL database or OzoneDB. In the case of
> OzoneDB I'd like to have
> 
>     interface OzoneNode extends Node, OzoneRemote {
>       // intentionally left blank because everything should have been
>       // defined in Node.
>     }
> 
> and then
> 
>     class OzoneNodeImpl extends OzoneObject implements OzoneNode {
>        // Implementation of the interface.
>     }
> 
> Is this possible? If not, how can I solve this problem?

Have a look at ozones DOM implementation in org.ozoneDB.xml.dom.*. The *Impl
classes have to implement OzoneRemote _and_ org.w3c.* interfaces because
org.w3c.* interface are independent from ozone. As far as I can see your
solution is exactly the same as what we did for the DOM classes ;) So yes, this
should work.


Falko
-- 
______________________________________________________________________
Falko Braeutigam                              mailto:falko@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com