All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.picocontainer.behaviors.Behavior Maven / Gradle / Ivy

There is a newer version: 2.15
Show newest version
package org.picocontainer.behaviors;

import org.picocontainer.ComponentAdapter;
import org.picocontainer.ObjectReference;

/**
 * static collection of  factory methods for easier behavior creation
 *
 * @author Konstantin Pribluda
 */
public class Behavior {

    public static final org.picocontainer.Behavior cached(ComponentAdapter delegate) {
        return new Cached(delegate);
    }

    public static final org.picocontainer.Behavior cached(ComponentAdapter delegate, ObjectReference instanceReference) {
        return new Cached(delegate,instanceReference);
    }


    public static final  org.picocontainer.Behavior decorated(ComponentAdapter delegate, Decorated.Decorator decorator) {
        return new Decorated(delegate,decorator);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy