Package ratpack.registry

Examples of ratpack.registry.RegistryBacking


  public CachingBackedRegistryTestImpl() {
    this(new LinkedList<Pair<TypeToken<?>, ? extends Supplier<?>>>());
  }

  public CachingBackedRegistryTestImpl(final List<Pair<TypeToken<?>, ? extends Supplier<?>>> supplierEntries) {
    super(new RegistryBacking() {
      @Override
      public <T> Iterable<Supplier<? extends T>> provide(final TypeToken<T> typeToken) {
        return FluentIterable.from(supplierEntries).filter(new Predicate<Pair<TypeToken<?>, ? extends Supplier<?>>>() {
          @Override
          public boolean apply(Pair<TypeToken<?>, ? extends Supplier<?>> entry) {
View Full Code Here

TOP

Related Classes of ratpack.registry.RegistryBacking

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.