Precisely. Thanks. need to know is that do I need to store this object using
"store" to be retreived by the Java Application or is there a direct way of
doing this.
    The basic need is to create an object based on a certain pattern and
return it to tha Java Program which has invoked JESS.

Regards
Aditya
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: Aditya Deshpande <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, August 14, 2000 6:18 PM
Subject: Re: JESS: Java Objects


> Do you just mean something like:
>
> (deffunction make-widget (?bean)
>   (bind ?type (get ?bean aProperty))
>   (if (eq ?type "FOO") then
>     (return (new Foo))
>    else (if (eq ?type "BAR") then
>     (return (new Bar))
>    else (if (eq ?type "BAZ") then
>     (return (new Baz)))))
>   (return (new NoneOfTheAbove)))
>
> Pretty much exactly as you would do it in Java, yes?
>
>
> I think Aditya Deshpande wrote:
> [Charset iso-8859-1 unsupported, filtering to ASCII...]
> > How do I do this in JESS:
> >
> > Implement factory kind of a pattern wherein based on the property of a
> > javabean I get a class from JESS returne
> >
> > Regards
> > Aditya
> >
> >
>
>
>
> ---------------------------------------------------------
> Ernest Friedman-Hill
> Distributed Systems Research        Phone: (925) 294-2154
> Sandia National Labs                FAX:   (925) 294-2234
> Org. 8920, MS 9012                  [EMAIL PROTECTED]
> PO Box 969                  http://herzberg.ca.sandia.gov
> Livermore, CA 94550
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list (use your own address!) List problems? Notify
[EMAIL PROTECTED]
> ---------------------------------------------------------------------
>
>



---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to