In package com.eden.orchid.api.resources.resourceSource

public abstract class OrchidResourceSource extends Prioritized

since: v1.0.0 public abstract

OrchidResourceSource define the resource lookup order. Resources are looked up in the following order:

  1. Local sources
  2. The currently active theme
  3. Plugin sources

This makes it so that any resource defined in a plugin or theme can always be overridden by your local resoure sources. Likewise, any resource defined in a plugin can be overridden by the theme.

Fields

OrchidContext context final

Constructors

OrchidResourceSource(OrchidContext context, int priority) public
Constructor Annotations:
@Inject

Parameters:

Methods

OrchidResource getResourceEntry(String fileName) abstract public

Parameters:
  • String fileName
List<E> getResourceEntries(String dirName, String fileExtensions, boolean recursive) abstract public

Parameters:
  • String dirName
  • String fileExtensions
  • recursive
void shouldAddEntry(String entryName) protected

Parameters:
  • String entryName