Top Description Methods
jakarta.enterprise.inject.build.compatible.spi

public Interface Messages

Imports
jakarta.enterprise.lang.model.AnnotationTarget

Allows logging and producing errors during build compatible extension execution. If an error is produced, using any of the error methods, the container treats it as a deployment problem.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public void
error(String
error message
message
)

Add a generic error that is not related to any particular element, or that information is not known.

public void
error(String
error message
message
,
AnnotationTarget
annotation target to which the message is related
relatedTo
)

Add an error which is related to given AnnotationTarget (which is most likely a DeclarationInfo).

public void
error(String
error message
message
,
BeanInfo
bean to which the message is related
relatedTo
)

Add an error which is related to given BeanInfo.

public void
error(String
error message
message
,
ObserverInfo
observer to which the message is related
relatedTo
)

Add an error which is related to given ObserverInfo.

public void
error(Exception
error, represented by an exception
exception
)

Add a generic error that is represented by an exception.

public void
info(String
information message
message
)

Add a generic information message that is not related to any particular element, or that information is not known.

public void
info(String
information message
message
,
AnnotationTarget
annotation target to which the message is related
relatedTo
)

Add an information message which is related to given AnnotationTarget (which is most likely a DeclarationInfo).

public void
info(String
information message
message
,
BeanInfo
bean to which the message is related
relatedTo
)

Add an information message which is related to given BeanInfo.

public void
info(String
information message
message
,
ObserverInfo
observer to which the message is related
relatedTo
)

Add an information message which is related to given ObserverInfo.

public void
warn(String
warning message
message
)

Add a generic warning that is not related to any particular element, or that information is not known.

public void
warn(String
warning message
message
,
AnnotationTarget
annotation target to which the message is related
relatedTo
)

Add a warning which is related to given AnnotationTarget (which is most likely a DeclarationInfo).

public void
warn(String
warning message
message
,
BeanInfo
bean to which the message is related
relatedTo
)

Add a warning which is related to given BeanInfo.

public void
warn(String
warning message
message
,
ObserverInfo
observer to which the message is related
relatedTo
)

Add a warning which is related to given ObserverInfo.

Method Detail

errorback to summary
public void error(String message)

Add a generic error that is not related to any particular element, or that information is not known.

Parameters
message:String

error message

errorback to summary
public void error(String message, AnnotationTarget relatedTo)

Add an error which is related to given AnnotationTarget (which is most likely a DeclarationInfo).

Parameters
message:String

error message

relatedTo:AnnotationTarget

annotation target to which the message is related

errorback to summary
public void error(String message, BeanInfo relatedTo)

Add an error which is related to given BeanInfo.

Parameters
message:String

error message

relatedTo:BeanInfo

bean to which the message is related

errorback to summary
public void error(String message, ObserverInfo relatedTo)

Add an error which is related to given ObserverInfo.

Parameters
message:String

error message

relatedTo:ObserverInfo

observer to which the message is related

errorback to summary
public void error(Exception exception)

Add a generic error that is represented by an exception.

Parameters
exception:Exception

error, represented by an exception

infoback to summary
public void info(String message)

Add a generic information message that is not related to any particular element, or that information is not known.

Parameters
message:String

information message

infoback to summary
public void info(String message, AnnotationTarget relatedTo)

Add an information message which is related to given AnnotationTarget (which is most likely a DeclarationInfo).

Parameters
message:String

information message

relatedTo:AnnotationTarget

annotation target to which the message is related

infoback to summary
public void info(String message, BeanInfo relatedTo)

Add an information message which is related to given BeanInfo.

Parameters
message:String

information message

relatedTo:BeanInfo

bean to which the message is related

infoback to summary
public void info(String message, ObserverInfo relatedTo)

Add an information message which is related to given ObserverInfo.

Parameters
message:String

information message

relatedTo:ObserverInfo

observer to which the message is related

warnback to summary
public void warn(String message)

Add a generic warning that is not related to any particular element, or that information is not known.

Parameters
message:String

warning message

warnback to summary
public void warn(String message, AnnotationTarget relatedTo)

Add a warning which is related to given AnnotationTarget (which is most likely a DeclarationInfo).

Parameters
message:String

warning message

relatedTo:AnnotationTarget

annotation target to which the message is related

warnback to summary
public void warn(String message, BeanInfo relatedTo)

Add a warning which is related to given BeanInfo.

Parameters
message:String

warning message

relatedTo:BeanInfo

bean to which the message is related

warnback to summary
public void warn(String message, ObserverInfo relatedTo)

Add a warning which is related to given ObserverInfo.

Parameters
message:String

warning message

relatedTo:ObserverInfo

observer to which the message is related