| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
|
| 3 |
<html lang="en"> |
| 4 |
<head> |
| 5 |
|
| 6 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 7 |
<title>Signature (JBoss Logging I18n Documentation 2.2.1.Final API)</title> |
| 8 |
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| 9 |
<script type="text/javascript" src="../../../../script.js"></script> |
| 10 |
</head> |
| 11 |
<body> |
| 12 |
<script type="text/javascript"><!-- |
| 13 |
try { |
| 14 |
if (location.href.indexOf('is-external=true') == -1) { |
| 15 |
parent.document.title="Signature (JBoss Logging I18n Documentation 2.2.1.Final API)"; |
| 16 |
} |
| 17 |
} |
| 18 |
catch(err) { |
| 19 |
} |
| 20 |
//--> |
| 21 |
</script> |
| 22 |
<noscript> |
| 23 |
<div>JavaScript is disabled on your browser.</div> |
| 24 |
</noscript> |
| 25 |
|
| 26 |
<div class="topNav"><a name="navbar.top"> |
| 27 |
|
| 28 |
</a> |
| 29 |
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| 30 |
<a name="navbar.top.firstrow"> |
| 31 |
|
| 32 |
</a> |
| 33 |
<ul class="navList" title="Navigation"> |
| 34 |
<li><a href="../../../../org/jboss/logging/annotations/package-summary.html">Package</a></li> |
| 35 |
<li class="navBarCell1Rev">Class</li> |
| 36 |
<li><a href="class-use/Signature.html">Use</a></li> |
| 37 |
<li><a href="package-tree.html">Tree</a></li> |
| 38 |
<li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| 39 |
<li><a href="../../../../index-all.html">Index</a></li> |
| 40 |
<li><a href="../../../../help-doc.html">Help</a></li> |
| 41 |
</ul> |
| 42 |
<div class="aboutLanguage">JBoss Logging Tools, 2.2.1.Final</div> |
| 43 |
</div> |
| 44 |
<div class="subNav"> |
| 45 |
<ul class="navList"> |
| 46 |
<li><a href="../../../../org/jboss/logging/annotations/ResolutionDoc.html" title="annotation in org.jboss.logging.annotations"><span class="typeNameLink">Prev Class</span></a></li> |
| 47 |
<li><a href="../../../../org/jboss/logging/annotations/Suppressed.html" title="annotation in org.jboss.logging.annotations"><span class="typeNameLink">Next Class</span></a></li> |
| 48 |
</ul> |
| 49 |
<ul class="navList"> |
| 50 |
<li><a href="../../../../index.html?org/jboss/logging/annotations/Signature.html" target="_top">Frames</a></li> |
| 51 |
<li><a href="Signature.html" target="_top">No Frames</a></li> |
| 52 |
</ul> |
| 53 |
<ul class="navList" id="allclasses_navbar_top"> |
| 54 |
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| 55 |
</ul> |
| 56 |
<div> |
| 57 |
<script type="text/javascript"><!-- |
| 58 |
allClassesLink = document.getElementById("allclasses_navbar_top"); |
| 59 |
if(window==top) { |
| 60 |
allClassesLink.style.display = "block"; |
| 61 |
} |
| 62 |
else { |
| 63 |
allClassesLink.style.display = "none"; |
| 64 |
} |
| 65 |
//--> |
| 66 |
</script> |
| 67 |
</div> |
| 68 |
<div> |
| 69 |
<ul class="subNavList"> |
| 70 |
<li>Summary: </li> |
| 71 |
<li>Field | </li> |
| 72 |
<li><a href="#annotation.type.required.element.summary">Required</a> | </li> |
| 73 |
<li><a href="#annotation.type.optional.element.summary">Optional</a></li> |
| 74 |
</ul> |
| 75 |
<ul class="subNavList"> |
| 76 |
<li>Detail: </li> |
| 77 |
<li>Field | </li> |
| 78 |
<li><a href="#annotation.type.element.detail">Element</a></li> |
| 79 |
</ul> |
| 80 |
</div> |
| 81 |
<a name="skip.navbar.top"> |
| 82 |
|
| 83 |
</a></div> |
| 84 |
|
| 85 |
|
| 86 |
<div class="header"> |
| 87 |
<div class="subTitle">org.jboss.logging.annotations</div> |
| 88 |
<h2 title="Annotation Type Signature" class="title">Annotation Type Signature</h2> |
| 89 |
</div> |
| 90 |
<div class="contentContainer"> |
| 91 |
<div class="description"> |
| 92 |
<ul class="blockList"> |
| 93 |
<li class="blockList"> |
| 94 |
<hr> |
| 95 |
<br> |
| 96 |
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Retention.html?is-external=true" title="class or interface in java.lang.annotation">@Retention</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Retention.html?is-external=true#value--" title="class or interface in java.lang.annotation">value</a>=<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/RetentionPolicy.html?is-external=true#CLASS" title="class or interface in java.lang.annotation">CLASS</a>) |
| 97 |
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Target.html?is-external=true" title="class or interface in java.lang.annotation">@Target</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Target.html?is-external=true#value--" title="class or interface in java.lang.annotation">value</a>=<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/ElementType.html?is-external=true#METHOD" title="class or interface in java.lang.annotation">METHOD</a>) |
| 98 |
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Documented.html?is-external=true" title="class or interface in java.lang.annotation">@Documented</a> |
| 99 |
public @interface <span class="memberNameLabel">Signature</span></pre> |
| 100 |
<div class="block">Specifies the exact signature to use when creating a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><code>Throwable</code></a> return type. |
| 101 |
|
| 102 |
<p> |
| 103 |
Given the following exception and message bundle interface method the <code>InvalidIntValueException(final RuntimeException cause, final String msg, final int value)</code> |
| 104 |
constructor would be used. |
| 105 |
|
| 106 |
<code> |
| 107 |
<pre> |
| 108 |
public class InvalidIntValueException extends RuntimeException { |
| 109 |
private final RuntimeException causeAsRuntime; |
| 110 |
private final int value; |
| 111 |
public InvalidIntValueException(final Throwable cause, final String msg, final int value) { |
| 112 |
super(msg, cause); |
| 113 |
causeAsRuntime = new RuntimeException(cause); |
| 114 |
this.value = value; |
| 115 |
} |
| 116 |
|
| 117 |
public InvalidIntValueException(final RuntimeException cause, final String msg, final int value) { |
| 118 |
super(msg, cause); |
| 119 |
causeAsRuntime = cause; |
| 120 |
this.value = value; |
| 121 |
} |
| 122 |
public InvalidIntValueException(final RuntimeException cause, final String msg, final Integer value) { |
| 123 |
super(msg, cause); |
| 124 |
causeAsRuntime = cause; |
| 125 |
this.value = value; |
| 126 |
} |
| 127 |
} |
| 128 |
</pre> |
| 129 |
</code> |
| 130 |
|
| 131 |
<code> |
| 132 |
<pre> |
| 133 |
@Message("Invalid value %d") |
| 134 |
@Signature(causeIndex = 0, messageIndex = 1, value = {RuntimeException.class, String.class, int.class} |
| 135 |
InvalidIntValueException invalidValue(@Cause RuntimeException cause, @Param int value); |
| 136 |
</pre> |
| 137 |
</code> |
| 138 |
</p></div> |
| 139 |
<dl> |
| 140 |
<dt><span class="simpleTagLabel">Author:</span></dt> |
| 141 |
<dd><a href="mailto:[email protected]">James R. Perkins</a></dd> |
| 142 |
</dl> |
| 143 |
</li> |
| 144 |
</ul> |
| 145 |
</div> |
| 146 |
<div class="summary"> |
| 147 |
<ul class="blockList"> |
| 148 |
<li class="blockList"> |
| 149 |
|
| 150 |
<ul class="blockList"> |
| 151 |
<li class="blockList"><a name="annotation.type.required.element.summary"> |
| 152 |
|
| 153 |
</a> |
| 154 |
<h3>Required Element Summary</h3> |
| 155 |
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Required Element Summary table, listing required elements, and an explanation"> |
| 156 |
<caption><span>Required Elements</span><span class="tabEnd"> </span></caption> |
| 157 |
<tr> |
| 158 |
<th class="colFirst" scope="col">Modifier and Type</th> |
| 159 |
<th class="colLast" scope="col">Required Element and Description</th> |
| 160 |
</tr> |
| 161 |
<tr class="altColor"> |
| 162 |
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>[]</code></td> |
| 163 |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jboss/logging/annotations/Signature.html#value--">value</a></span></code> |
| 164 |
<div class="block">An array of types matching the exact signature to use for the exception being created.</div> |
| 165 |
</td> |
| 166 |
</tr> |
| 167 |
</table> |
| 168 |
</li> |
| 169 |
</ul> |
| 170 |
|
| 171 |
<ul class="blockList"> |
| 172 |
<li class="blockList"><a name="annotation.type.optional.element.summary"> |
| 173 |
|
| 174 |
</a> |
| 175 |
<h3>Optional Element Summary</h3> |
| 176 |
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Optional Element Summary table, listing optional elements, and an explanation"> |
| 177 |
<caption><span>Optional Elements</span><span class="tabEnd"> </span></caption> |
| 178 |
<tr> |
| 179 |
<th class="colFirst" scope="col">Modifier and Type</th> |
| 180 |
<th class="colLast" scope="col">Optional Element and Description</th> |
| 181 |
</tr> |
| 182 |
<tr class="altColor"> |
| 183 |
<td class="colFirst"><code>int</code></td> |
| 184 |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jboss/logging/annotations/Signature.html#causeIndex--">causeIndex</a></span></code> |
| 185 |
<div class="block">The index for the <a href="../../../../org/jboss/logging/annotations/Cause.html" title="annotation in org.jboss.logging.annotations">cause</a> of the exception being created.</div> |
| 186 |
</td> |
| 187 |
</tr> |
| 188 |
<tr class="rowColor"> |
| 189 |
<td class="colFirst"><code>int</code></td> |
| 190 |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jboss/logging/annotations/Signature.html#messageIndex--">messageIndex</a></span></code> |
| 191 |
<div class="block">The index for the message.</div> |
| 192 |
</td> |
| 193 |
</tr> |
| 194 |
</table> |
| 195 |
</li> |
| 196 |
</ul> |
| 197 |
</li> |
| 198 |
</ul> |
| 199 |
</div> |
| 200 |
<div class="details"> |
| 201 |
<ul class="blockList"> |
| 202 |
<li class="blockList"> |
| 203 |
|
| 204 |
<ul class="blockList"> |
| 205 |
<li class="blockList"><a name="annotation.type.element.detail"> |
| 206 |
|
| 207 |
</a> |
| 208 |
<h3>Element Detail</h3> |
| 209 |
<a name="value--"> |
| 210 |
|
| 211 |
</a> |
| 212 |
<ul class="blockListLast"> |
| 213 |
<li class="blockList"> |
| 214 |
<h4>value</h4> |
| 215 |
<pre>public abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>[] value</pre> |
| 216 |
<div class="block">An array of types matching the exact signature to use for the exception being created.</div> |
| 217 |
<dl> |
| 218 |
<dt><span class="returnLabel">Returns:</span></dt> |
| 219 |
<dd>an array of types used to find the signature</dd> |
| 220 |
</dl> |
| 221 |
</li> |
| 222 |
</ul> |
| 223 |
</li> |
| 224 |
</ul> |
| 225 |
|
| 226 |
<ul class="blockList"> |
| 227 |
<li class="blockList"><a name="causeIndex--"> |
| 228 |
|
| 229 |
</a> |
| 230 |
<ul class="blockList"> |
| 231 |
<li class="blockList"> |
| 232 |
<h4>causeIndex</h4> |
| 233 |
<pre>public abstract int causeIndex</pre> |
| 234 |
<div class="block">The index for the <a href="../../../../org/jboss/logging/annotations/Cause.html" title="annotation in org.jboss.logging.annotations">cause</a> of the exception being created. A value of less than zero assumes |
| 235 |
there is no cause parameter in the constructor. A <a href="../../../../org/jboss/logging/annotations/Cause.html" title="annotation in org.jboss.logging.annotations"><code>Cause</code></a> annotation can still be used and the |
| 236 |
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true#initCause-java.lang.Throwable-" title="class or interface in java.lang"><code>Throwable.initCause(Throwable)</code></a> will be used to initialize the cause of the exception.</div> |
| 237 |
<dl> |
| 238 |
<dt><span class="returnLabel">Returns:</span></dt> |
| 239 |
<dd>the index for the cause parameter</dd> |
| 240 |
</dl> |
| 241 |
<dl> |
| 242 |
<dt>Default:</dt> |
| 243 |
<dd>-1</dd> |
| 244 |
</dl> |
| 245 |
</li> |
| 246 |
</ul> |
| 247 |
</li> |
| 248 |
</ul> |
| 249 |
<ul class="blockList"> |
| 250 |
<li class="blockList"><a name="messageIndex--"> |
| 251 |
|
| 252 |
</a> |
| 253 |
<ul class="blockListLast"> |
| 254 |
<li class="blockList"> |
| 255 |
<h4>messageIndex</h4> |
| 256 |
<pre>public abstract int messageIndex</pre> |
| 257 |
<div class="block">The index for the message. This is the formatted messaged from the <a href="../../../../org/jboss/logging/annotations/Message.html#value--"><code>Message.value()</code></a>. This is a required |
| 258 |
value defaulting to 0 which would be the first parameter.</div> |
| 259 |
<dl> |
| 260 |
<dt><span class="returnLabel">Returns:</span></dt> |
| 261 |
<dd>the index for the message parameter</dd> |
| 262 |
</dl> |
| 263 |
<dl> |
| 264 |
<dt>Default:</dt> |
| 265 |
<dd>0</dd> |
| 266 |
</dl> |
| 267 |
</li> |
| 268 |
</ul> |
| 269 |
</li> |
| 270 |
</ul> |
| 271 |
</li> |
| 272 |
</ul> |
| 273 |
</div> |
| 274 |
</div> |
| 275 |
|
| 276 |
|
| 277 |
<div class="bottomNav"><a name="navbar.bottom"> |
| 278 |
|
| 279 |
</a> |
| 280 |
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| 281 |
<a name="navbar.bottom.firstrow"> |
| 282 |
|
| 283 |
</a> |
| 284 |
<ul class="navList" title="Navigation"> |
| 285 |
<li><a href="../../../../org/jboss/logging/annotations/package-summary.html">Package</a></li> |
| 286 |
<li class="navBarCell1Rev">Class</li> |
| 287 |
<li><a href="class-use/Signature.html">Use</a></li> |
| 288 |
<li><a href="package-tree.html">Tree</a></li> |
| 289 |
<li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| 290 |
<li><a href="../../../../index-all.html">Index</a></li> |
| 291 |
<li><a href="../../../../help-doc.html">Help</a></li> |
| 292 |
</ul> |
| 293 |
<div class="aboutLanguage">JBoss Logging Tools, 2.2.1.Final</div> |
| 294 |
</div> |
| 295 |
<div class="subNav"> |
| 296 |
<ul class="navList"> |
| 297 |
<li><a href="../../../../org/jboss/logging/annotations/ResolutionDoc.html" title="annotation in org.jboss.logging.annotations"><span class="typeNameLink">Prev Class</span></a></li> |
| 298 |
<li><a href="../../../../org/jboss/logging/annotations/Suppressed.html" title="annotation in org.jboss.logging.annotations"><span class="typeNameLink">Next Class</span></a></li> |
| 299 |
</ul> |
| 300 |
<ul class="navList"> |
| 301 |
<li><a href="../../../../index.html?org/jboss/logging/annotations/Signature.html" target="_top">Frames</a></li> |
| 302 |
<li><a href="Signature.html" target="_top">No Frames</a></li> |
| 303 |
</ul> |
| 304 |
<ul class="navList" id="allclasses_navbar_bottom"> |
| 305 |
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| 306 |
</ul> |
| 307 |
<div> |
| 308 |
<script type="text/javascript"><!-- |
| 309 |
allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| 310 |
if(window==top) { |
| 311 |
allClassesLink.style.display = "block"; |
| 312 |
} |
| 313 |
else { |
| 314 |
allClassesLink.style.display = "none"; |
| 315 |
} |
| 316 |
//--> |
| 317 |
</script> |
| 318 |
</div> |
| 319 |
<div> |
| 320 |
<ul class="subNavList"> |
| 321 |
<li>Summary: </li> |
| 322 |
<li>Field | </li> |
| 323 |
<li><a href="#annotation.type.required.element.summary">Required</a> | </li> |
| 324 |
<li><a href="#annotation.type.optional.element.summary">Optional</a></li> |
| 325 |
</ul> |
| 326 |
<ul class="subNavList"> |
| 327 |
<li>Detail: </li> |
| 328 |
<li>Field | </li> |
| 329 |
<li><a href="#annotation.type.element.detail">Element</a></li> |
| 330 |
</ul> |
| 331 |
</div> |
| 332 |
<a name="skip.navbar.bottom"> |
| 333 |
|
| 334 |
</a></div> |
| 335 |
|
| 336 |
<p class="legalCopy"><small>Copyright © 2019 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p> |
| 337 |
</body> |
| 338 |
</html> |