View Javadoc

1   package org.appfuse.webapp.client.application;
2   
3   import org.appfuse.webapp.client.application.base.place.EntityProxyPlace;
4   import org.appfuse.webapp.client.application.base.place.EntitySearchPlace;
5   import org.appfuse.webapp.client.requests.ApplicationRequestFactory;
6   
7   import com.google.inject.Inject;
8   
9   public class ApplicationPlaceHistoryFactory {
10      private final EntityProxyPlace.Tokenizer entityPlaceTokenizer;
11      private final EntitySearchPlace.Tokenizer entityListPlaceTokenizer;
12  
13      @Inject
14      public ApplicationPlaceHistoryFactory(ApplicationRequestFactory requestFactory, ApplicationProxyFactory applicationProxyFactory) {
15          this.entityListPlaceTokenizer = new EntitySearchPlace.Tokenizer(applicationProxyFactory, requestFactory);
16          this.entityPlaceTokenizer = new EntityProxyPlace.Tokenizer(requestFactory);
17      }
18  
19      public EntityProxyPlace.Tokenizer getEntityPlaceTokenizer() {
20          return entityPlaceTokenizer;
21      }
22  
23      public EntitySearchPlace.Tokenizer getEntityListPlaceTokenizer() {
24          return entityListPlaceTokenizer;
25      }
26  }