org.richfaces.javascript

## Class ClientScriptServiceImpl

- java.lang.Object
- - org.richfaces.javascript.ClientScriptServiceImpl

- All Implemented Interfaces:
    ClientScriptService

      public class ClientScriptServiceImpl
      extends Object
      implements ClientScriptService

  Author:
    asmirnov

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ClientScriptServiceImpl(Map<Class<?>,LibraryFunction> defaultMapping)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `LibraryFunction` | `getScript(javax.faces.context.FacesContext facesContext, Class<?> javaClass)` Get description for client-side version of Java implementation

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ClientScriptServiceImpl

          public ClientScriptServiceImpl(Map<Class<?>,LibraryFunction> defaultMapping)

  - ### Method Detail

    - #### getScript

          public LibraryFunction getScript(javax.faces.context.FacesContext facesContext,
                                  Class<?> javaClass)
                                    throws ScriptNotFoundException

      Description copied from interface: `ClientScriptService`

      Get description for client-side version of Java implementation

      Specified by:
        `getScript` in interface `ClientScriptService`
      Parameters:
        `facesContext` - TODO
        `javaClass` - either Converter or Validator class.
      Returns:
        description of client-side script.
      Throws:
        `ScriptNotFoundException` - if no JavaScript code associated with Java class.

Copyright © 2016 JBoss by Red Hat. All Rights Reserved.