<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Why do you need ElementType.METHOD? You
cannot use method-level bindings for lifecycle callback
interceptor methods. This has been reverted from the interceptors
spec.<br>
<br>
On 04/24/2013 02:17 PM, Jens Schumann wrote:<br>
</div>
<blockquote
cite="mid:CD9D99F6.2BBB3%25jens.schumann@openknowledge.de"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>Hi all!</div>
<div><br>
</div>
<div>While testing Weld 2.0.0.CR4 I have been running into a
DefinitionException because of an interceptor that contains one
@AroundInvoke and one @PostConstruct method. Since I use this
interceptor at class AND method level it declares
@Target({ElementType.METHOD, ElementType.TYPE}). The error
message seems to indicate that I can not have a lifecycle
callback interceptor with @Target METHOD: </div>
<div><br>
</div>
<div>"WELD-000619 An interceptor for lifecycle callbacks
Interceptor XX declares and interceptor binding interface YYY
with METHOD as its @Target." </div>
<div><br>
</div>
<div>Is this true? I just checked the current CDI 1.1 and
Interceptor 1.2 spec and could not find this kind of
restriction. </div>
<div><br>
</div>
<div>Jens</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
cdi-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/cdi-dev">https://lists.jboss.org/mailman/listinfo/cdi-dev</a></pre>
</blockquote>
<br>
</body>
</html>