Interface ResourceService

  • All Superinterfaces:
    Service

    @DefaultServiceFactory(ResourceServiceFactory.class)
    public interface ResourceService
    extends Service
    Resources loading service.

    Overview

    This service provides an abstraction layer for accessing file system resources. Functionality of this service depends on the underlying runtime. In the simplest case, if Hekate node is directly constructed by the Java application then it will use URL-based resources loading. Alternatively, if Hekate node is managed by the Spring Framework then it will utilize the framework's resource loading capabilities.

    Accessing the Service

    ResourceService can be accessed via Hekate.get(Class) method as in the example below:

    
    ResourceService resources = hekate.get(ResourceService.class);