I'm not sure if I understand the @Role-Annotation correctly. Can it be used so that one component can be instanciated under two names or retrieved under two names. Imagine I have a component like this:
@Name("foo") @Scope(ScopeType.SESSION) @Role(name="bar", scope=ScopeType.CONVERSATION) public class Foo { }
<h:input value="#{foo.test}" />
@Stateless public class FooBarAction { @In Foo foo; @In Foo bar; public boolean isIdentical() { return foo == bar; } }