Class ResourceScriptService

  • All Implemented Interfaces:
    org.xwiki.script.service.ScriptService

    @Component
    @Named("resource")
    @Singleton
    @Unstable
    public class ResourceScriptService
    extends Object
    implements org.xwiki.script.service.ScriptService
    Exposes the Resource API to server-side scripts.
    Since:
    14.4.2, 14.5
    Version:
    $Id: 49cc5ab5a7f1ceaabcccffab05211e0eee7c9553 $
    • Constructor Detail

      • ResourceScriptService

        public ResourceScriptService()
    • Method Detail

      • get

        public <S extends org.xwiki.script.service.ScriptService> S get​(String serviceName)
        Type Parameters:
        S - the type of the ScriptService
        Parameters:
        serviceName - the name of the sub ScriptService
        Returns:
        the ScriptService or null of none could be found