On Mon, Jul 4, 2011 at 8:39 AM, Rickard Öberg <[email protected]>wrote:
> On 7/4/11 14:33 , Toni Menzel wrote: > >> Ok the example sounds odd. >> Instead of named @Tagged ( "Safe" ) one could use a custom annotation >> @Safe. >> Thats what other DI fw allow. >> I am not 100% sure if it serves well understanding of the semantics, too. >> >> But it would reduce the String-ification of things. >> Which i think is usually not appreciated. >> > > Well, in the above case, there's nothing to stop you from using an enum > AFAIK: > @Service @Tagged(Safety.SAFE.name()) > > Right? Correct. Though User/Domain specific annotations is one of the few syntactic sugar pieces you have in the java language. Would be sad when a DDD Framework like Qi4J would just drop that. I agree the user of an app has to learn about this app specific annotation. Has pros and cons. > > /Rickard > > ______________________________**_________________ > qi4j-dev mailing list > [email protected] > http://lists.ops4j.org/**mailman/listinfo/qi4j-dev<http://lists.ops4j.org/mailman/listinfo/qi4j-dev> > -- Toni Menzel Source <http://tonimenzel.com> _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

