Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.client.api
Annotation Type IOCProvider


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface IOCProvider

Defines a top-level provider for the IOC Container. Top-level providers are a special feature of the container used for defining injectable beans which are available anywhere within the container, from any scope, at any point of the runtime lifecycle.

Top-level providers are used for defining framework-level features such as support for injecting instances of the MessageBus or the RPC Callable interface.

The production of top-level providers are not managed beans. But the instances of the top-level providers are themselves, managed and are scopable. Thus, all top-level providers that do not declare an explicit scope are of the pseudo-dependant scope and are instantiated prior to all invocations of the provider.

Classes which are annotated with @IOCProvider MUST implement either:


Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.