|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.script.internal.service.DefaultScriptServiceManager
@Component @Singleton public class DefaultScriptServiceManager
Locate Script Services by name dynamically at runtime by looking them up agains the Component Manager.
| Constructor Summary | |
|---|---|
DefaultScriptServiceManager()
|
|
| Method Summary | |
|---|---|
ScriptService |
get(java.lang.String serviceName)
Note that we're voluntarily using an API name of "get" to make it extra easy to access Script Services from Velocity (since in Velocity writing $services.name is equivalent to writing
$services.get("name")). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultScriptServiceManager()
| Method Detail |
|---|
public ScriptService get(java.lang.String serviceName)
throws ScriptServiceNotFoundException
$services.name is equivalent to writing
$services.get("name")). It also makes it a short and easy API name for other scripting languages.
get in interface ScriptServiceManagerserviceName - the name of the service to look for
ScriptServiceNotFoundException - if there is no script service registered with the specified nameScriptServiceManager.get(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||