APIdia Launch Partner
Top Description Fields Constructors Methods
java.beans.beancontext

public Class BeanContextServiceAvailableEvent

extends BeanContextEvent
Class Inheritance
Annotations
@SuppressWarnings:removal
@Deprecated
since:23
forRemoval:true
Imports
java.io.Serial, java.util.Iterator

Deprecated

for removal since 23.

This event type is used by the BeanContextServicesListener in order to identify the service being registered.

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides java.beans.beancontext.BeanContextEvent.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.
protected Class<?>
serviceClass

A Class reference to the newly available service

Inherited from java.beans.beancontext.BeanContextEvent:
propagatedFrom

Constructor Summary

AccessConstructor and Description
public
BeanContextServiceAvailableEvent(BeanContextServices
The context in which the service has become available
bcs
,
Class<?>
A Class reference to the newly available service
sc
)
References Deprecated BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.

Construct a BeanContextAvailableServiceEvent.

Method Summary

Modifier and TypeMethod and Description
public Iterator<?>

Returns:

the current selectors available from the service
getCurrentServiceSelectors
()

Gets the list of service dependent selectors.

public Class<?>

Returns:

A Class reference to the newly available service
getServiceClass
()

Gets the service class that is the subject of this notification.

public BeanContextServices

Returns:

The context in which the service has become available
getSourceAsBeanContextServices
()
References Deprecated BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.

Gets the source as a reference of type BeanContextServices.

Inherited from java.beans.beancontext.BeanContextEvent:
getBeanContextgetPropagatedFromisPropagatedsetPropagatedFrom

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.beans.beancontext.BeanContextEvent.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.

Annotations
@Serial
serviceClassback to summary
protected Class<?> serviceClass

A Class reference to the newly available service

Constructor Detail

BeanContextServiceAvailableEventback to summary
public BeanContextServiceAvailableEvent(BeanContextServices bcs, Class<?> sc)

References Deprecated

BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Construct a BeanContextAvailableServiceEvent.

Parameters
bcs:BeanContextServices

The context in which the service has become available

sc:Class<?>

A Class reference to the newly available service

Method Detail

getCurrentServiceSelectorsback to summary
public Iterator<?> getCurrentServiceSelectors()

Gets the list of service dependent selectors.

Returns:Iterator<?>

the current selectors available from the service

getServiceClassback to summary
public Class<?> getServiceClass()

Gets the service class that is the subject of this notification.

Returns:Class<?>

A Class reference to the newly available service

getSourceAsBeanContextServicesback to summary
public BeanContextServices getSourceAsBeanContextServices()

References Deprecated

BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Gets the source as a reference of type BeanContextServices.

Returns:BeanContextServices

The context in which the service has become available