Class

net.liftmodules.ng.Angular

JsObjFactory

Related Doc: package Angular

Permalink

class JsObjFactory extends Factory

Produces a javascript object with ajax functions as keys. e.g.

function(dependencies) {
  get: function() { doAjaxStuff(); }
  post: function(string) { doAjaxStuff(); }
}
Linear Supertypes
Factory, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsObjFactory
  2. Factory
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsObjFactory()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def anyVal(functionName: String, value: AnyVal)(implicit formats: Formats = DefaultFormats): JsObjFactory

    Permalink

    Registers a no-arg javascript function in this service's javascript object that returns an AnyVal value.

    Registers a no-arg javascript function in this service's javascript object that returns an AnyVal value. Use this to provide primitive values which are known at page load time and do not change.

    functionName

    name of the function to be made available on the service/factory

    value

    value to be returned on invocation of this function in the client.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def defAny(functionName: String, func: ⇒ Box[Any])(implicit formats: Formats = DefaultFormats): JsObjFactory

    Permalink

    Registers a no-arg javascript function in this service's javascript object that returns a $q promise.

    Registers a no-arg javascript function in this service's javascript object that returns a $q promise. This function is an enhancement over jsonCall in that it allows the caller to provide an implicit Formats for dictating the JSON serializer.

    Future plan is to include a macro named defs which will choose the appropriate def*() function based on the type of the argument.

    functionName

    name of the function to be made available on the service/factory

    func

    produces the result of the ajax call. Failure, Full(DefaultResponse(false)), and some other logical failures will be mapped to promise.reject(). See promiseMapper.

  8. def defFutureAny[T](functionName: String, func: ⇒ LAFuture[Box[T]])(implicit formats: Formats = DefaultFormats): JsObjFactory

    Permalink

    Registers a no-arg javascript function in this service's javascript object that returns a $q promise.

    Registers a no-arg javascript function in this service's javascript object that returns a $q promise. This function is an enhancement over future in that it allows the caller to provide an implicit Formats for dictating the JSON serializer.

    Future plan is to include a macro named defs which will choose the appropriate def*() function based on the type of the argument.

    functionName

    name of the function to be made available on the service/factory

    func

    produces the result of the ajax call. Failure, Full(DefaultResponse(false)), and some other logical failures will be mapped to promise.reject(). See promiseMapper.

  9. def defModelToAny[Model <: NgModel](functionName: String, func: ModelFnBox[Model])(implicit mf: Manifest[Model], formats: Formats = DefaultFormats): JsObjFactory

    Permalink

    Registers a javascript function in this service's javascript object that takes an NgModel object and returns a $q promise.

    Registers a javascript function in this service's javascript object that takes an NgModel object and returns a $q promise. This function is an enhancement over jsonCall in that it allows the caller to provide an implicit Formats for dictating the JSON serializer.

    Future plan is to include a macro named defs which will choose the appropriate def*() function based on the type of the argument.

    functionName

    name of the function to be made available on the service/factory

    func

    produces the result of the ajax call. Failure, Full(DefaultResponse(false)), and some other logical failures will be mapped to promise.reject(). See promiseMapper.

  10. def defModelToFutureAny[Model <: NgModel, T](functionName: String, func: ModelFnFuture[Model, T])(implicit mf: Manifest[Model], formats: Formats = DefaultFormats): JsObjFactory

    Permalink

    Registers a javascript function in this service's javascript object that takes an NgModel object and returns a $q promise.

    Registers a javascript function in this service's javascript object that takes an NgModel object and returns a $q promise. This function is an enhancement over future in that it allows the caller to provide an implicit Formats for dictating the JSON serializer.

    Future plan is to include a macro named defs which will choose the appropriate def*() function based on the type of the argument.

    functionName

    name of the function to be made available on the service/factory

    func

    produces the result of the ajax call. Failure, Full(DefaultResponse(false)), and some other logical failures will be mapped to promise.reject(). See promiseMapper.

  11. def defStringToAny(functionName: String, func: (String) ⇒ Box[Any])(implicit formats: Formats = DefaultFormats): JsObjFactory

    Permalink

    Registers a javascript function in this service's javascript object that takes a String and returns a $q promise.

    Registers a javascript function in this service's javascript object that takes a String and returns a $q promise. This function is an enhancement over jsonCall in that it allows the caller to provide an implicit Formats for dictating the JSON serializer.

    Future plan is to include a macro named defs which will choose the appropriate def*() function based on the type of the argument.

    functionName

    name of the function to be made available on the service/factory

    func

    produces the result of the ajax call. Failure, Full(DefaultResponse(false)), and some other logical failures will be mapped to promise.reject(). See promiseMapper.

  12. def defStringToFutureAny[T](functionName: String, func: (String) ⇒ LAFuture[Box[T]])(implicit formats: Formats = DefaultFormats): JsObjFactory

    Permalink

    Registers a javascript function in this service's javascript object that takes a String and returns a $q promise.

    Registers a javascript function in this service's javascript object that takes a String and returns a $q promise. This function is an enhancement over future in that it allows the caller to provide an implicit Formats for dictating the JSON serializer.

    Future plan is to include a macro named defs which will choose the appropriate def*() function based on the type of the argument.

    functionName

    name of the function to be made available on the service/factory

    func

    produces the result of the ajax call. Failure, Full(DefaultResponse(false)), and some other logical failures will be mapped to promise.reject(). See promiseMapper.

  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def future[Model <: NgModel, T](functionName: String, func: (Model) ⇒ LAFuture[Box[T]])(implicit mf: Manifest[Model]): JsObjFactory

    Permalink

    Registers a javascript function in this service's javascript object that takes an NgModel object and returns a $q promise.

    Registers a javascript function in this service's javascript object that takes an NgModel object and returns a $q promise.

    functionName

    name of the function to be made available on the service/factory

    func

    produces the result of the ajax call. Failure, Full(DefaultResponse(false)), and some other logical failures will be mapped to promise.reject(). See promiseMapper.

  17. def future[T](functionName: String, func: (String) ⇒ LAFuture[Box[T]]): JsObjFactory

    Permalink

    Registers a javascript function in this service's javascript object that takes a String and returns a $q promise.

    Registers a javascript function in this service's javascript object that takes a String and returns a $q promise.

    functionName

    name of the function to be made available on the service/factory

    func

    produces the result of the ajax call. Failure, Full(DefaultResponse(false)), and some other logical failures will be mapped to promise.reject(). See promiseMapper.

  18. def future[T](functionName: String, func: ⇒ LAFuture[Box[T]]): JsObjFactory

    Permalink

    Registers a no-arg javascript function in this service's javascript object that returns a $q promise.

    Registers a no-arg javascript function in this service's javascript object that returns a $q promise.

    functionName

    name of the function to be made available on the service/factory

    func

    produces the result of the ajax call. Failure, Full(DefaultResponse(false)), and some other logical failures will be mapped to promise.reject(). See promiseMapper.

  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def json(functionName: String, value: AnyRef)(implicit formats: Formats = DefaultFormats): JsObjFactory

    Permalink

    Registers a no-arg javascript function in this service's javascript object that returns a json object.

    Registers a no-arg javascript function in this service's javascript object that returns a json object. Use this to provide objects which are known at page load time and do not change.

    functionName

    name of the function to be made available on the service/factory

    value

    value to be returned on invocation of this function in the client.

  23. def jsonCall[Model <: NgModel](functionName: String, func: ModelFnBox[Model])(implicit mf: Manifest[Model]): JsObjFactory

    Permalink

    Registers a javascript function in this service's javascript object that takes an NgModel object and returns a $q promise.

    Registers a javascript function in this service's javascript object that takes an NgModel object and returns a $q promise.

    functionName

    name of the function to be made available on the service/factory

    func

    produces the result of the ajax call. Failure, Full(DefaultResponse(false)), and some other logical failures will be mapped to promise.reject(). See promiseMapper.

  24. def jsonCall(functionName: String, func: (String) ⇒ Box[AnyRef]): JsObjFactory

    Permalink

    Registers a javascript function in this service's javascript object that takes a String and returns a $q promise.

    Registers a javascript function in this service's javascript object that takes a String and returns a $q promise.

    functionName

    name of the function to be made available on the service/factory

    func

    produces the result of the ajax call. Failure, Full(DefaultResponse(false)), and some other logical failures will be mapped to promise.reject(). See promiseMapper.

  25. def jsonCall(functionName: String, func: ⇒ Box[AnyRef]): JsObjFactory

    Permalink

    Registers a no-arg javascript function in this service's javascript object that returns a $q promise.

    Registers a no-arg javascript function in this service's javascript object that returns a $q promise.

    functionName

    name of the function to be made available on the service/factory

    func

    produces the result of the ajax call. Failure, Full(DefaultResponse(false)), and some other logical failures will be mapped to promise.reject(). See promiseMapper.

  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. def string(functionName: String, value: String)(implicit formats: Formats = DefaultFormats): JsObjFactory

    Permalink

    Registers a no-arg javascript function in this service's javascript object that returns a String value.

    Registers a no-arg javascript function in this service's javascript object that returns a String value. Use this to provide string values which are known at page load time and do not change.

    functionName

    name of the function to be made available on the service/factory

    value

    value to be returned on invocation of this function in the client.

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Factory

Inherited from AnyRef

Inherited from Any

Ungrouped