-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stephen McConnell wrote: | <snip/> | | Problem with this is that you introduce container dependencies into you | component. | | The alternative (container indepedent) way is to try and get the context | value using the key. | | public void contextualize( Context context ) throws ContextException | { | try | { | m_file = (File) context.get("app.home"); | } | catch( ContextException ce ) | { | m_file = (File) context.get("avalon:home"); | } | } | <snip/>
Wow, that's even better. Thanks! - -- Tomasz Skutnik, R&D Director, www.e-point.pl tel +48 (22) 853 48 30, mob +48 501 555 705, fax +48 (22) 853 48 30 e-point S.A., ul. Filona 16, 02-658 Warsaw, Poland PGP/GPG public key: http://scooter.ext.e-point.pl/tomasz.skutnik.gpg -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE9ZHrzKoVCme/JcTgRAoLeAKCFO7TRB+uCdNJOisXf4kwm+9t31wCcDvFB 265AsKcfFriWVZpuoiv+kok= =3dMH -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>