commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig McClanahan <craig...@gmail.com>
Subject Re: [chain] catalog config
Date Mon, 17 Jan 2005 02:20:33 GMT
On Sun, 16 Jan 2005 19:42:15 -0600, Vic <vin@friendvu.com> wrote:
> Craig McClanahan wrote:
> 
> >As the javadoc deprecation message tells you, you should call the
> >parse method that only takes a URL, not the one that takes a Catalog
> >and a URL.  This allows the CatalogFactory mechanism to look up the
> >appropriate Catalog instance(s), creating them as necessary.
> >
> >
> THANKS as allways!!!!
> 
> Yes, I saw that.... but how do I get a handle to the created catalog
> instance?

To get the default catalog instance:

  Catalog catalog = CatalogFactory.getInstance().getCatalog();

To get a catalog named "foo":

  Catalog catalog = CatalogFactory.getInstance().getCatalog("foo");

> 
> tia,
> .V

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message