View Javadoc

1   package delight.concurrency.gwt.internal;
2   
3   import delight.concurrency.Concurrency;
4   import delight.concurrency.configuration.ConcurrencyConfiguration;
5   import delight.concurrency.gwt.ConcurrencyGwt;
6   import delight.factories.Configuration;
7   import delight.factories.Dependencies;
8   import delight.factories.Factory;
9   
10  public class GwtConcurrencyFactory implements Factory<Concurrency, ConcurrencyConfiguration, Dependencies> {
11  
12      @Override
13      public boolean canInstantiate(final Configuration conf) {
14          return conf instanceof ConcurrencyConfiguration;
15      }
16  
17      @Override
18      public Concurrency create(final ConcurrencyConfiguration conf, final Dependencies dependencies) {
19          return ConcurrencyGwt.create();
20      }
21  
22  }