Oops... forgot I was working on a branch.

Pushed now.

--j

On Thu, Nov 27, 2008 at 11:38 PM, Marius <[EMAIL PROTECTED]> wrote:

>
> Nice ! ... is this committed anywhere?
>
> On Nov 28, 4:57 am, "Jorge Ortiz" <[EMAIL PROTECTED]> wrote:
> > Folks,
> >
> > First, I've deprecated the containsClass method in ClassHelpers. It was
> only
> > being used once in the entire Lift codebase, and it was basically
> equivalent
> > to a very short call to List.exists. If you're using containsClass and
> have
> > some objection to using List.exists instead, let me know and I'll
> > undeprecate it, but otherwise I see no good reason to keep it around.
> >
> > Second, I've updated some of the stuff in net.liftweb.util to take
> advantage
> > of Scala's new Manifests, which provide a cleaner interface. The older
> > methods using Class[C] should still be there and work as they did before.
> >
> > For example, Cans have an "isA" method that takes a Class and returns a
> Full
> > can if the contents of the Can can be cast to that class, or Empty
> > otherwise. To illustrate:
> >
> >   abstract class Base
> >   case object Derived extends Base
> >   case object Incompatible extends Base
> >
> >   Ful(Derived).isA(classOf[Base])     // returns a Full[Base]
> >   Full(Derived).isA(classOf[Incompatible])     // returns an Empty
> >   Empty.isA(classOf[Base])      // returns Empty
> >
> > The new method is called "asA", and has a sligtly different (cleaner)
> > interface:
> >
> >   Full(Derived).asA[Base]     // returns a Full[Base]
> >   Full(Derived).asA[Incompatible]     // returns an Empty
> >   Empty.asA[Base]     // returns an Empty
> >
> > Likewise, the findClass methods in ClassHelpers take a Class[C] to which
> the
> > found class must conform. There are now new findType methods which don't
> > require the Class[C], just a type annotation. So instead of:
> >
> >   findClass(name, where, classOf[CometActor])
> >
> > You can now do:
> >
> >   findType[CometActor](name, where)
> >
> > There were some methods private to Lift that I migrated as well, but
> those
> > shouldn't affect your apps.
> >
> > Thanks,
> >
> > --j
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to