You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2004/06/15 14:16:43 UTC
Avoid coding class names as strings
Hi Lenya developers,
please avoid to code class names as strings, e.g. replace
session.getAttribute("org.apache.lenya.cms.cocoon.acting.Authenticator.id");
with
session.getAttribute(Authenticator.class.getName() + ".id");
Reasons:
- get exceptions when removed classes are still referenced
- get exceptions when moved/renamed classes are referenced
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org