public abstract class

BeanScheduler

extends Object
java.lang.Object
   ↳ org.eclipse.sisu.bean.BeanScheduler
Known Direct Subclasses

Class Overview

Schedules safe activation of beans even when cyclic dependencies are involved.
Takes advantage of the new Guice ProvisionListener SPI, if available at runtime.

Summary

Fields
public static final Module MODULE Enables deferred activation of component cycles, only needed in legacy systems like Plexus.
Public Constructors
BeanScheduler()
Public Methods
static void detectCycle(Object value)
Detects if a dependency cycle exists and activation needs to be deferred.
final void schedule(Object bean)
Schedules activation of the given bean at the next safe activation point.
Protected Methods
abstract void activate(Object bean)
Customized activation of the given bean.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final Module MODULE

Enables deferred activation of component cycles, only needed in legacy systems like Plexus.

Public Constructors

public BeanScheduler ()

Public Methods

public static void detectCycle (Object value)

Detects if a dependency cycle exists and activation needs to be deferred.

public final void schedule (Object bean)

Schedules activation of the given bean at the next safe activation point.

Parameters
bean The managed bean

Protected Methods

protected abstract void activate (Object bean)

Customized activation of the given bean.

Parameters
bean The bean to activate