Top Description Methods
org.hibernate.service.spi

public @Interface InjectService

extends Annotation
Annotations
@Target:METHOD
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .Target

Annotation to allow services to request injection of other services
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

True if the service is required.
required
()

Is the service to be injected required (not optional)?

public Class<T>

Returns:

The service role.
serviceRole
()

The service role to inject, the default is to use the type of the parameter to which this method is attached.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

requiredback to summary
public boolean required()

Is the service to be injected required (not optional)?

Returns:boolean

True if the service is required.

serviceRoleback to summary
public Class<T> serviceRole()

The service role to inject, the default is to use the type of the parameter to which this method is attached.

Returns:Class<T>

The service role.