In package com.eden.orchid.api.resources

@Singleton
public final class ResourceServiceImpl extends Object implements ResourceService

since: v1.0.0 public final

Constructors

ResourceServiceImpl(String resourcesDir, Set<E> fileResourceSources, Set<E> pluginResourceSources, OkHttpClient client) public
Constructor Annotations:
@Inject

Parameters:
  • @Named(
        value="resourcesDir")
    String resourcesDir
  • Set fileResourceSources
  • Set pluginResourceSources
  • OkHttpClient client

Methods

void initialize(OrchidContext context) public
Method Annotations:
@Override

Parameters:
Map<K, V> getDatafile(String fileName) public
Method Annotations:
@Override

Parameters:
  • String fileName
Map<K, V> getDatafiles(String directory) public
Method Annotations:
@Override

Parameters:
  • String directory
OrchidResource getLocalResourceEntry(String fileName) public
Method Annotations:
@Override

Parameters:
  • String fileName
OrchidResource getThemeResourceEntry(String fileName) public
Method Annotations:
@Override

Parameters:
  • String fileName
OrchidResource getResourceEntry(String fileName) public
Method Annotations:
@Override

Parameters:
  • String fileName
List<E> getLocalResourceEntries(String path, String fileExtensions, boolean recursive) public
Method Annotations:
@Override

Parameters:
  • String path
  • String fileExtensions
  • recursive
List<E> getThemeResourceEntries(String path, String fileExtensions, boolean recursive) public
Method Annotations:
@Override

Parameters:
  • String path
  • String fileExtensions
  • recursive
List<E> getResourceEntries(String path, String fileExtensions, boolean recursive) public
Method Annotations:
@Override

Parameters:
  • String path
  • String fileExtensions
  • recursive
Map<K, V> loadAdditionalFile(String url) public
Method Annotations:
@Override

Parameters:
  • String url
Map<K, V> loadLocalFile(String url) public
Method Annotations:
@Override

Parameters:
  • String url
Map<K, V> loadRemoteFile(String url) public
Method Annotations:
@Override

Parameters:
  • String url
OrchidResource findClosestFile(String filename) public
Method Annotations:
@Override

Parameters:
  • String filename
OrchidResource findClosestFile(String filename, boolean strict) public
Method Annotations:
@Override

Parameters:
  • String filename
  • strict
OrchidResource findClosestFile(String filename, boolean strict, int maxIterations) public
Method Annotations:
@Override

Parameters:
  • String filename
  • strict
  • maxIterations
OrchidResource locateLocalResourceEntry(String fileName) public
Method Annotations:
@Override

Parameters:
  • String fileName
OrchidResource locateLocalResourceEntry(String fileName, String fileExtensions) public
Method Annotations:
@Override

Parameters:
  • String fileName
  • String fileExtensions
OrchidResource locateLocalResourceEntry(String fileName, List<E> fileExtensions) public
Method Annotations:
@Override

Parameters:
  • String fileName
  • List fileExtensions
OrchidResource locateTemplate(String fileNames) public
Method Annotations:
@Override

Parameters:
  • String fileNames
OrchidResource locateTemplate(String fileNames) public
Method Annotations:
@Override

Parameters:
  • String fileNames
OrchidResource locateTemplate(List<E> fileNames) public
Method Annotations:
@Override

Parameters:
  • List fileNames
OrchidResource locateTemplate(String fileNames, boolean ignoreMissing) public
Method Annotations:
@Override

Parameters:
  • String fileNames
  • ignoreMissing
OrchidResource locateTemplate(String fileNames, boolean ignoreMissing) public
Method Annotations:
@Override

Parameters:
  • String fileNames
  • ignoreMissing
OrchidResource locateTemplate(List<E> fileNames, boolean ignoreMissing) public
Method Annotations:
@Override

Parameters:
  • List fileNames
  • ignoreMissing