no reason, with drools 2 we had every method under the sun, and it was a bit
too confusing for some, so we went the other direction for this.

StringReader is what is needed as it is friendly to parsers, but sure, a
convenience one could be OK.

As for the IOException, blame sun and their 90's fetish for checked
exceptions everywhere ;)

On 12/6/06, Dirk Bergstrom <[EMAIL PROTECTED]> wrote:

Is there a reason there's no version of PackageBuilder.addPackageFromDrl()
that takes two Strings?

I'm reading my rules from a database, and I've got the DSL in memory, so
why
do I need to wrap my strings up as StringReaders, and catch an IOException
that will never come?

I'd be happy to provide a patch to add this feature.  I'd cheat a bit and
wrap
up the DSL in a StringReader, because there's six methods in five classes
between PackageBuilder and the code that actually reads the DSL (which
catches
the IOException, btw).

--
Dirk Bergstrom               [EMAIL PROTECTED]
_____________________________________________
Juniper Networks Inc.,          Computer Geek
Tel: 408.745.3182           Fax: 408.745.8905

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to