IT. Expert System.

Java Enterprise Edition (EE)

ObserverMethod


javax.enterprise.inject.spi
Interface ObserverMethod<T>

Type Parameters:
T - the event type
public interface ObserverMethod<T>

Represents an observer method of an enabled bean. Defines everything the container needs to know about an observer method.

Author:
Gavin King, David Allen

Method Summary
 java.lang.Class<?> getBeanClass()
          Obtains the bean class of the bean that declares the observer method.
 java.util.Set<java.lang.annotation.Annotation> getObservedQualifiers()
          Obtains the set of observed event qualifiers.
 java.lang.reflect.Type getObservedType()
          Obtains the observed event type.
 Reception getReception()
          Obtains the specified Reception for the observer method.
 TransactionPhase getTransactionPhase()
          Obtains the specified TransactionPhase for the observer method.
 void notify(T event)
          Calls the observer method, passing the given event object.
 

Method Detail

getBeanClass

java.lang.Class<?> getBeanClass()
Obtains the bean class of the bean that declares the observer method.

Returns:
the defining class

getObservedType

java.lang.reflect.Type getObservedType()
Obtains the observed event type.

Returns:
the observed event type

getObservedQualifiers

java.util.Set<java.lang.annotation.Annotation> getObservedQualifiers()
Obtains the set of observed event qualifiers.

Returns:
the observed event qualifiers

getReception

Reception getReception()
Obtains the specified Reception for the observer method. This indicates if the observer is conditional or not.

Returns:
the Reception

getTransactionPhase

TransactionPhase getTransactionPhase()
Obtains the specified TransactionPhase for the observer method.

Returns:
the TransactionPhase

notify

void notify(T event)
Calls the observer method, passing the given event object.

Parameters:
event - the event object


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 546 / . Delta: 0.03049 с