io.atleon.context.ContextActivatingAloDecorator Maven / Gradle / Ivy
package io.atleon.context;
import io.atleon.core.Alo;
import io.atleon.core.AloDecorator;
/**
* An {@link AloDecorator} that decorates {@link Alo} elements with
* {@link io.atleon.context.AloContext AloContext} activation
*
* @param The type of data item exposed by decorated {@link Alo}s
*/
public class ContextActivatingAloDecorator implements AloDecorator {
@Override
public int order() {
return OUTERMOST_ORDER - 3000;
}
@Override
public final Alo decorate(Alo alo) {
return ContextActivatingAlo.create(alo);
}
}