Package org.xwiki.resource.script
Class ResourceScriptService
- java.lang.Object
-
- org.xwiki.resource.script.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 Summary
Constructors Constructor Description ResourceScriptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S extends org.xwiki.script.service.ScriptService>
Sget(String serviceName)
-
-
-
Field Detail
-
ROLE_HINT
public static final String ROLE_HINT
The role hint of this component.- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public <S extends org.xwiki.script.service.ScriptService> S get(String serviceName)
- Type Parameters:
S
- the type of theScriptService
- Parameters:
serviceName
- the name of the subScriptService
- Returns:
- the
ScriptService
or null of none could be found
-
-