Using @Contribute annotation is a preferred way to match a service to
contribute into. Using service ids just sucks. Nevertheless, we have some
services to contribute into using string ids. Now I'm looking for a name of
a marker annotation similar to @Primary. For example, DefaultDataTypeAnalyzer
is contributed to DataTypeAnalyzer which is @Primary. The users never
contribute to the @Primary DataTypeAnalyzer, but to DefaultDataTypeAnalyzer.
The later cannot be matched by a marker annotation.

public static void
contributeDefaultDataTypeAnalyzer(MappedConfiguration<Class, String>
configuration) { ... }

So, I'm looking for a good marker name. Any ideas? Maybe @Main or @Default?

-- 
Best regards,

Igor Drobiazko
http://tapestry5.de

Reply via email to