Seam JMS supported this functionality (dynamic steroetypes) for a short period of time.  When we saw the behavior inconsistent w/ OWB it was dropped.  It was originally meant to emulate JNDI lookups in an SE environment.<br>
<br>John<br><br><br><div class="gmail_quote">On Wed, May 2, 2012 at 7:54 AM, Mark Struberg <span dir="ltr">&lt;<a href="mailto:struberg@yahoo.de" target="_blank">struberg@yahoo.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have not seen those dynamic stereotypes in free nature yet.<br>
<br>
Actually I&#39;m not using Stereotypes that much at all. Mainly because their usage is limited by the Java Annotation boundaries.<br>
<br>
Imagine the following Stereotype for my Services (I spare out the standard stuff)<br>
<br>
<br>
@StereoType<br>
@Secured<br>
@Transactional<br>
@ApplicationScoped<br>
public @interface @Service {}<br>
<br>
The problem here is that there is no way to &#39;propagate&#39; any rolesAllowed from @Service to @Secured, etc.<br>
<br>
What I&#39;d like to have is something like<br>
...<br>
public @interface @Service {<br>
<br>
    String[] rolesAllowed();<br>
    TransactionAttributeType transactionType();<br>
<br>
}<br>
<br>
where the rolesAllowed() would get propagated to the @Secured meta-annotation and transactionType() to the @Transactional<br>
<br>
With such an annotation I could use:<br>
<br>
@Service(rolesAllowed={&quot;admin&quot;, &quot;editor&quot;}, transactionType =  REQUIRES_NEW)<br>
public String doSomething() {...<br>
<br>
<br>
<br>
But that&#39;s not possible with Java Annotations. Or do you have any ideas how to do that? (without having to manually propagate this in each and every interceptor).<br>
<br>
<br>
LieGrue,<br>
strub<br>
<div><div class="h5"><br>
<br>
<br>
----- Original Message -----<br>
&gt; From: Pete Muir &lt;<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt;<br>
&gt; To: <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>; <a href="mailto:deltaspike-dev@incubator.apache.org">deltaspike-dev@incubator.apache.org</a>; David Blevins &lt;<a href="mailto:david.blevins@gmail.com">david.blevins@gmail.com</a>&gt;<br>

&gt; Cc:<br>
&gt; Sent: Wednesday, May 2, 2012 1:05 PM<br>
&gt; Subject: [cdi-dev] Dynamic stereotypes<br>
&gt;<br>
&gt; Hi all<br>
&gt;<br>
&gt; The Java EE spec leads would like feedback on how often stereotypes are<br>
&gt; &quot;dynamic&quot; vs &quot;static&quot;.<br>
&gt;<br>
&gt; A static stereotype is one that is defined in Java code, compiled, and then<br>
&gt; deployed without modification from a container extension.<br>
&gt;<br>
&gt; A dynamic stereotype is one that defined in Java code, compiled, and then<br>
&gt; modified by an extension.<br>
&gt;<br>
&gt; Another way of putting it is:<br>
&gt;<br>
&gt; * Are there any extensions which modify stereotypes?<br>
&gt; * Is this something that is common or not?<br>
&gt;<br>
&gt; This relates to David&#39;s metatype proposal.<br>
&gt;<br>
&gt; Pete<br>
</div></div>&gt; _______________________________________________<br>
&gt; cdi-dev mailing list<br>
&gt; <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt;<br>
</blockquote></div><br>