Hi,

is there some specific reason, why WebApplication#mount is deprecated in 1.5? It could be a really good shortcut:
mount(new MyMapper("", A.class);
rather then:
getRootRequestMapperAsCompound().add(new MyMapper("", A.class));

also PackageMapper looks really weird:
mount(new MountMapper("/error", new PackageMapper(PackageName.forClass(InternalServerError.class))));

PackageMapper is a valid IRequestMapper, so I could write this:
mount(new PackageMapper(PackageName.forClass(InternalServerError.class)));
which is syntactically correct, but semantically it's a wtf. (what mountpath will be used then, would it even match?)
Thoughts?

Thanks,
Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to