I checked some other ELResolver implementation and I noticed
that we (company) have already implementation of prefixed names. 
Because we have thousands of beans their names are  cz.company prefixed.

in ELResolver is this algorithm:

if ("cz".equals(property)) {
  context.setPropertyResolved(true);
  return new CZPackage();

if (base != null && base instanceof CZPackage() &&
"company".equals(property)) {
  context.setPropertyResolved(true);
   return CompanyPackage();
}

if (base != null && base instanceof CompanyPackage) {

        // go here in some bean registry ...
}


With some generalization such algorithm can be used for
javax.enterprise.context handling and probably for any "dotted" bean
name. What do you think?


Martin

Martin Koci píše v Út 23. 02. 2010 v 14:05 +0100:
> "javax.enterprise.context.conversation"

Reply via email to