You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Optional Annotations

In addition to those defined in JSR 250, the following annotations MAY be handled by the container.

@Async

Indicates that a method call could actually be performed asynchronously in the background using a proxy of some kind to avoid blocking the calling thread.

@Singleton

Allow POJOs to be marked as being singletons so that an IoC container does not create multiple instances of them.

  • No labels