com.escalatesoft.subcut

inject

package inject

Created by IntelliJ IDEA. User: Dick Wall Date: 5/5/11 Time: 10:06 AM

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. inject
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class AnnotationsInjectPlugin extends Plugin

    Created by IntelliJ IDEA.

  2. trait AutoInjectable extends Injectable

    AutoInjectable is identical to Injectable except that if you are using the compiler plugin, the implicit bindingModule parameter will be automatically filled in for you.

  3. class BindingException extends Exception

    Thrown if there is an issue with a binding, for example, no matching binding for a given Binding key.

  4. abstract class BindingId extends AnyRef

    Created with IntelliJ IDEA.

  5. trait BindingModule extends AnyRef

    The main BindingModule trait.

  6. trait BoundToModule extends AnyRef

    A trait that can be used to provide the cake-like ability to mix in a trait upon instance creation rather than using the implicit parameter.

  7. class Inject extends Annotation with StaticAnnotation

    Created by IntelliJ IDEA.

  8. trait Injectable extends AnyRef

    The trait that provides dependency injection features for a class or object.

  9. trait MutableBindingModule extends BindingModule

    A mutable binding module.

  10. class NewBindingModule extends BindingModule with Serializable

    A class to create a new, immutable, binding module.

Value Members

  1. object NewBindingModule extends Serializable

    A companion object holding a convenience method to create new binding modules on the fly when passed a function from MutableBindingModule to unit.

  2. implicit def bindingIdToString(bindingId: BindingId): String

    An implicit conversion from BindingId subclasses to String type, so that objects that extend BindingId can be used as Binding identifiers both for binding and for injection.

    An implicit conversion from BindingId subclasses to String type, so that objects that extend BindingId can be used as Binding identifiers both for binding and for injection.

    bindingId

    a sub-object of BindingId

    returns

    String short name of Binding object class

  3. val injected: Option[Nothing]

    Package definition to provide an injected value that indicates the default value for a constructor parameter is to be injected.

    Package definition to provide an injected value that indicates the default value for a constructor parameter is to be injected. This is just a name for None and is typed to Option[Nothing] so it should be possible to use it as a missing default for any constructor injected parameter. Should be used in conjunction with Injectable.injectIfMissing

  4. def moduleInstanceOf[T](implicit m: Manifest[T]): ClassSingleModuleProvider[T]

    Convenience method to create a new reflective instance provider for the given class.

    Convenience method to create a new reflective instance provider for the given class. When bound, each request for the bound item will return the same instance for the current bindingModule. Calls with new bindingModules will get a new instance which will also be a singleton within that bindingModule.

    T

    the class to create new instances of

    m

    implicit manifest of class to create instances of

    returns

    a new class instance provider

  5. def newInstanceOf[T](implicit m: Manifest[T]): ClassInstanceProvider[T]

    Convenience method to create a new reflective instance provider for the given class.

    Convenience method to create a new reflective instance provider for the given class. When bound, each request for the bound item will create a new instance reflectively and return that new instance. Instances must not take any constructor parameters other than (optionally) the bindingModule.

    T

    the class to create new instances of

    m

    implicit manifest of class to create instances of

    returns

    a new class instance provider

  6. package util

Inherited from AnyRef

Inherited from Any

Ungrouped