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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def defAny(functionName: String, func: ⇒ Box[Any])(implicit formats: Formats): 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.

  7. def defFutureAny[T](functionName: String, func: ⇒ Future[T])(implicit formats: Formats, ec: ExecutionContextProvider): 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.

  8. def defParamToAny[P](functionName: String, func: (P) ⇒ Box[Any])(implicit mf: Manifest[P], formats: Formats): JsObjFactory

    Permalink

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

    Registers a javascript function in this service's javascript object that takes an arbitrary parameter 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.

  9. def defParamToFutureAny[P, T](functionName: String, func: (P) ⇒ Future[T])(implicit mf: Manifest[P], formats: Formats, ec: ExecutionContextProvider): JsObjFactory

    Permalink

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

    Registers a javascript function in this service's javascript object that takes an arbitrary parameter 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.

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def valAny(functionName: String, value: Any)(implicit formats: Formats): 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.

  22. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) anyVal has been replaced by valAny

  2. 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.

    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.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) defFutureAny(LAFuture[Box[T]]) has been replaced by defFutureAny(Future[T])

  3. def defModelToAny[P](functionName: String, func: (P) ⇒ Box[Any])(implicit mf: Manifest[P], formats: Formats = DefaultFormats): JsObjFactory

    Permalink

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

    Registers a javascript function in this service's javascript object that takes an arbitrary parameter 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) defModelToAny has been replaced by defParamToAny

  4. def defModelToFutureAny[P, T](functionName: String, func: (P) ⇒ LAFuture[Box[T]])(implicit mf: Manifest[P], formats: Formats = DefaultFormats): JsObjFactory

    Permalink

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

    Registers a javascript function in this service's javascript object that takes an arbitrary parameter 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) defModelToFutureAny has been replaced by defParamToFutureAny

  5. 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.

    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.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) defStringToAny has been replaced by defParamToAny

  6. 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.

    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.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) defStringToFutureAny has been replaced by defParamToFutureAny

  7. def future[P, T](functionName: String, func: (P) ⇒ LAFuture[Box[T]])(implicit mf: Manifest[P]): JsObjFactory

    Permalink

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

    Registers a javascript function in this service's javascript object that takes an arbitrary parameter 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) future has been replaced by defParamToFutureAny

  8. 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) future has been replaced by defFutureAny

  9. 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) json has been replaced by valAny

  10. def jsonCall[P](functionName: String, func: (P) ⇒ Box[Any])(implicit mf: Manifest[P]): JsObjFactory

    Permalink

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

    Registers a javascript function in this service's javascript object that takes an arbitrary parameter 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) jsonCall has been replaced by defParamToAny

  11. 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) jsonCall has been replaced by defAny

  12. 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) string has been replaced by valAny

Inherited from Factory

Inherited from AnyRef

Inherited from Any

Ungrouped