blob: ba29bfb8cf3a12a177b430f5b5fb8678c31915e4 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>AnnotationLiteral</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
<link rel="shortcut icon" href="/img/jakarta-favicon.ico">
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AnnotationLiteral";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../../../jakarta/enterprise/util/Nonbinding.html" title="annotation in jakarta.enterprise.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?jakarta/enterprise/util/AnnotationLiteral.html" target="_top">Frames</a></li>
<li><a href="AnnotationLiteral.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">jakarta.enterprise.util</div>
<h2 title="Class AnnotationLiteral" class="title">Class AnnotationLiteral&lt;T extends java.lang.annotation.Annotation&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>jakarta.enterprise.util.AnnotationLiteral&lt;T&gt;</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - the annotation type</dd>
</dl>
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.io.Serializable, java.lang.annotation.Annotation</dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../jakarta/enterprise/inject/Alternative.Literal.html" title="class in jakarta.enterprise.inject">Alternative.Literal</a>, <a href="../../../jakarta/enterprise/inject/Any.Literal.html" title="class in jakarta.enterprise.inject">Any.Literal</a>, <a href="../../../jakarta/faces/annotation/ApplicationMap.Literal.html" title="class in jakarta.faces.annotation">ApplicationMap.Literal</a>, <a href="../../../jakarta/enterprise/context/ApplicationScoped.Literal.html" title="class in jakarta.enterprise.context">ApplicationScoped.Literal</a>, <a href="../../../jakarta/security/enterprise/authentication/mechanism/http/AutoApplySession.Literal.html" title="class in jakarta.security.enterprise.authentication.mechanism.http">AutoApplySession.Literal</a>, <a href="../../../jakarta/enterprise/context/BeforeDestroyed.Literal.html" title="class in jakarta.enterprise.context">BeforeDestroyed.Literal</a>, <a href="../../../jakarta/enterprise/context/ConversationScoped.Literal.html" title="class in jakarta.enterprise.context">ConversationScoped.Literal</a>, <a href="../../../jakarta/enterprise/inject/Default.Literal.html" title="class in jakarta.enterprise.inject">Default.Literal</a>, <a href="../../../jakarta/enterprise/context/Dependent.Literal.html" title="class in jakarta.enterprise.context">Dependent.Literal</a>, <a href="../../../jakarta/enterprise/context/Destroyed.Literal.html" title="class in jakarta.enterprise.context">Destroyed.Literal</a>, <a href="../../../jakarta/faces/component/behavior/FacesBehavior.Literal.html" title="class in jakarta.faces.component.behavior">FacesBehavior.Literal</a>, <a href="../../../jakarta/faces/annotation/FacesConfig.Literal.html" title="class in jakarta.faces.annotation">FacesConfig.Literal</a>, <a href="../../../jakarta/faces/convert/FacesConverter.Literal.html" title="class in jakarta.faces.convert">FacesConverter.Literal</a>, <a href="../../../jakarta/faces/model/FacesDataModel.Literal.html" title="class in jakarta.faces.model">FacesDataModel.Literal</a>, <a href="../../../jakarta/faces/validator/FacesValidator.Literal.html" title="class in jakarta.faces.validator">FacesValidator.Literal</a>, <a href="../../../jakarta/faces/flow/builder/FlowBuilderParameter.Literal.html" title="class in jakarta.faces.flow.builder">FlowBuilderParameter.Literal</a>, <a href="../../../jakarta/faces/flow/builder/FlowDefinition.Literal.html" title="class in jakarta.faces.flow.builder">FlowDefinition.Literal</a>, <a href="../../../jakarta/faces/annotation/FlowMap.Literal.html" title="class in jakarta.faces.annotation">FlowMap.Literal</a>, <a href="../../../jakarta/faces/annotation/HeaderMap.Literal.html" title="class in jakarta.faces.annotation">HeaderMap.Literal</a>, <a href="../../../jakarta/faces/annotation/HeaderValuesMap.Literal.html" title="class in jakarta.faces.annotation">HeaderValuesMap.Literal</a>, <a href="../../../jakarta/enterprise/context/Initialized.Literal.html" title="class in jakarta.enterprise.context">Initialized.Literal</a>, <a href="../../../jakarta/faces/annotation/InitParameterMap.Literal.html" title="class in jakarta.faces.annotation">InitParameterMap.Literal</a>, <a href="../../../jakarta/enterprise/inject/literal/InjectLiteral.html" title="class in jakarta.enterprise.inject.literal">InjectLiteral</a>, <a href="../../../jakarta/security/enterprise/authentication/mechanism/http/LoginToContinue.Literal.html" title="class in jakarta.security.enterprise.authentication.mechanism.http">LoginToContinue.Literal</a>, <a href="../../../jakarta/faces/annotation/ManagedProperty.Literal.html" title="class in jakarta.faces.annotation">ManagedProperty.Literal</a>, <a href="../../../jakarta/enterprise/inject/literal/NamedLiteral.html" title="class in jakarta.enterprise.inject.literal">NamedLiteral</a>, <a href="../../../jakarta/enterprise/util/Nonbinding.Literal.html" title="class in jakarta.enterprise.util">Nonbinding.Literal</a>, <a href="../../../jakarta/faces/push/Push.Literal.html" title="class in jakarta.faces.push">Push.Literal</a>, <a href="../../../jakarta/enterprise/inject/literal/QualifierLiteral.html" title="class in jakarta.enterprise.inject.literal">QualifierLiteral</a>, <a href="../../../jakarta/security/enterprise/authentication/mechanism/http/RememberMe.Literal.html" title="class in jakarta.security.enterprise.authentication.mechanism.http">RememberMe.Literal</a>, <a href="../../../jakarta/faces/annotation/RequestCookieMap.Literal.html" title="class in jakarta.faces.annotation">RequestCookieMap.Literal</a>, <a href="../../../jakarta/faces/annotation/RequestMap.Literal.html" title="class in jakarta.faces.annotation">RequestMap.Literal</a>, <a href="../../../jakarta/faces/annotation/RequestParameterMap.Literal.html" title="class in jakarta.faces.annotation">RequestParameterMap.Literal</a>, <a href="../../../jakarta/faces/annotation/RequestParameterValuesMap.Literal.html" title="class in jakarta.faces.annotation">RequestParameterValuesMap.Literal</a>, <a href="../../../jakarta/enterprise/context/RequestScoped.Literal.html" title="class in jakarta.enterprise.context">RequestScoped.Literal</a>, <a href="../../../jakarta/faces/annotation/SessionMap.Literal.html" title="class in jakarta.faces.annotation">SessionMap.Literal</a>, <a href="../../../jakarta/enterprise/context/SessionScoped.Literal.html" title="class in jakarta.enterprise.context">SessionScoped.Literal</a>, <a href="../../../jakarta/enterprise/inject/literal/SingletonLiteral.html" title="class in jakarta.enterprise.inject.literal">SingletonLiteral</a>, <a href="../../../jakarta/enterprise/inject/Specializes.Literal.html" title="class in jakarta.enterprise.inject">Specializes.Literal</a>, <a href="../../../jakarta/enterprise/inject/TransientReference.Literal.html" title="class in jakarta.enterprise.inject">TransientReference.Literal</a>, <a href="../../../jakarta/enterprise/inject/Typed.Literal.html" title="class in jakarta.enterprise.inject">Typed.Literal</a>, <a href="../../../jakarta/enterprise/inject/Vetoed.Literal.html" title="class in jakarta.enterprise.inject">Vetoed.Literal</a>, <a href="../../../jakarta/faces/annotation/View.Literal.html" title="class in jakarta.faces.annotation">View.Literal</a>, <a href="../../../jakarta/faces/annotation/ViewMap.Literal.html" title="class in jakarta.faces.annotation">ViewMap.Literal</a>, <a href="../../../jakarta/faces/event/WebsocketEvent.Closed.Literal.html" title="class in jakarta.faces.event">WebsocketEvent.Closed.Literal</a>, <a href="../../../jakarta/faces/event/WebsocketEvent.Opened.Literal.html" title="class in jakarta.faces.event">WebsocketEvent.Opened.Literal</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">AnnotationLiteral&lt;T extends java.lang.annotation.Annotation&gt;</span>
extends java.lang.Object
implements java.lang.annotation.Annotation, java.io.Serializable</pre>
<div class="block"><p>
Supports inline instantiation of annotation type instances.
</p>
<p>
Reflection operations are using <code>SecurityActions</code> utility class to support security manager.
</p>
<p>
An instance of an annotation type may be obtained by subclassing <code>AnnotationLiteral</code>.
</p>
<pre>
public abstract class PayByQualifier extends AnnotationLiteral&lt;PayBy&gt; implements PayBy {
}
</pre>
<pre>
PayBy payByCheque = new PayByQualifier() {
public PaymentMethod value() {
return CHEQUE;
}
};
</pre></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../jakarta/enterprise/inject/Instance.html#select-java.lang.annotation.Annotation...-"><code>Instance.select(Annotation...)</code></a>,
<a href="../../../jakarta/enterprise/event/Event.html#select-java.lang.annotation.Annotation...-"><code>Event.select(Annotation...)</code></a>,
<a href="../../../serialized-form.html#jakarta.enterprise.util.AnnotationLiteral">Serialized Form</a></dd>
<dt><span class="simpleTagLabel">Examples (en):</span></dt>
<dd><a href="../../../../../../tomee-9.0/examples/cdi-dynamic-inject.html">cdi-dynamic-inject</a></dd>
<dt><span class="simpleTagLabel">Examples (pt):</span></dt>
<dd><a href="../../../../../../tomee-9.0/pt/examples/cdi-dynamic-inject.html">cdi-dynamic-inject</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../jakarta/enterprise/util/AnnotationLiteral.html#AnnotationLiteral--">AnnotationLiteral</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>java.lang.Class&lt;? extends java.lang.annotation.Annotation&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../jakarta/enterprise/util/AnnotationLiteral.html#annotationType--">annotationType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../jakarta/enterprise/util/AnnotationLiteral.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object&nbsp;other)</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../jakarta/enterprise/util/AnnotationLiteral.html#hashCode--">hashCode</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../jakarta/enterprise/util/AnnotationLiteral.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="AnnotationLiteral--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>AnnotationLiteral</h4>
<pre>protected&nbsp;AnnotationLiteral()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="annotationType--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>annotationType</h4>
<pre>public&nbsp;java.lang.Class&lt;? extends java.lang.annotation.Annotation&gt;&nbsp;annotationType()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>annotationType</code>&nbsp;in interface&nbsp;<code>java.lang.annotation.Annotation</code></dd>
</dl>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>toString</code>&nbsp;in interface&nbsp;<code>java.lang.annotation.Annotation</code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public&nbsp;boolean&nbsp;equals(java.lang.Object&nbsp;other)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>equals</code>&nbsp;in interface&nbsp;<code>java.lang.annotation.Annotation</code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="hashCode--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>hashCode</h4>
<pre>public&nbsp;int&nbsp;hashCode()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>hashCode</code>&nbsp;in interface&nbsp;<code>java.lang.annotation.Annotation</code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../../../jakarta/enterprise/util/Nonbinding.html" title="annotation in jakarta.enterprise.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?jakarta/enterprise/util/AnnotationLiteral.html" target="_top">Frames</a></li>
<li><a href="AnnotationLiteral.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>