org.javabits.yar.guice.NoWaitBlockingSupplierFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yar-guice Show documentation
Show all versions of yar-guice Show documentation
Yar Guice: provide a implementation / integration base on guice
package org.javabits.yar.guice;
import org.javabits.yar.BlockingSupplier;
import org.javabits.yar.Id;
/**
* @author Romain Gilles
* Date: 5/31/13
* Time: 1:39 PM
*/
public class NoWaitBlockingSupplierFactory implements BlockingSupplierFactory {
@Override
public BlockingSupplier create(InternalRegistry registry, Id id) {
return new NoWaitBlockingSupplier<>(id, registry.getDirectly(id));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy