/** * * @param resourceLoader * @param featuresoo * @throws GadgetException */ @Inject public FeatureRegistry(FeatureResourceLoader resourceLoader, @Named("org.apache.shindig.features") List<String> features) throws GadgetException { this.parser = new FeatureParser(); this.resourceLoader = resourceLoader; featureMap = register(features); // Connect the dependency graph made up of all features and validate there // are no circular deps. connectDependencyGraph(); // Clear caches. cache.clear(); }
/** * * @param resourceLoader * @param featuresoo * @throws GadgetException */ @Inject public FeatureRegistry(FeatureResourceLoader resourceLoader, @Named("org.apache.shindig.features") List<String> features) throws GadgetException { this.parser = new FeatureParser(); this.resourceLoader = resourceLoader; featureMap = register(features); // Connect the dependency graph made up of all features and validate there // are no circular deps. connectDependencyGraph(); // Clear caches. cache.clear(); }
public FeatureRegistry(FeatureResourceLoader resourceLoader, CacheProvider cacheProvider, @Named("org.apache.shindig.features") List<String> features, FeatureFileSystem fileSystem, String repository) throws GadgetException { this.parser = new FeatureParser(); this.resourceLoader = resourceLoader; this.fileSystem = fileSystem; this.repository = repository; this.featureMap = register(features); // Connect the dependency graph made up of all features and validate there // are no circular deps. connectDependencyGraph(); this.cache = cacheProvider.createCache(CACHE_NAME); }