<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Fri, Jan 5, 2018 at 8:43 AM, David Lloyd <span dir="ltr"><<a href="mailto:david.lloyd@redhat.com" target="_blank">david.lloyd@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Jan 5, 2018 at 8:20 AM, Brian Stansberry<br>
<<a href="mailto:brian.stansberry@redhat.com">brian.stansberry@redhat.com</a>> wrote:<br>
> In practice the suffix is required. The deployment unit processors need to<br>
> know whether they are interested in the deployment, and in the end that gets<br>
> back to some DUP or other checking the suffix. The alternative would be DUPs<br>
> speculatively digging into the deployment, checking for deployment<br>
> descriptors or annotations and the like and that would be more expensive,<br>
> likely buggy (e.g. false positives when some class in the classpath includes<br>
> an annotation not relevant to the deployment) and could mess up some use<br>
> cases where we want to defer classloading.<br>
<br>
</span>Another alternative is for an early processor to identify the type,<br>
tag it on to the deployment context, and then we modify all other DUPs<br>
to use that information. It seems pretty fragile to rely on the name,<br>
particularly if that mechanism allows the "type" of deployment to<br>
change in mid-deploy.<br></blockquote><div><br></div><div>I agree; if it's not done that way now, it should be. My *impression* is the general pattern was the way you describe, i.e. for each significant type some early DUP determines it's a relevant type and attaches some stuff and then later ones rely on the attachments. But my impression could very well be wrong in some or many cases. I haven't done much DUP work beyond code reviews or simple fixes since the AS 7.0 days.</div><div><br></div><div>But that early processor still needs a way to identify type and I think that comes down to the suffix.</div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Brian Stansberry<div>Manager, Senior Principal Software Engineer</div><div>Red Hat</div></div></div>
</div></div>