object MongoRules extends SimpleInjector
- Alphabetic
- By Inheritance
- MongoRules
- SimpleInjector
- Injector
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
class
Inject
[T] extends StackableMaker[T] with Vendor[T]
Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.
Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.
- Definition Classes
- SimpleInjector
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
collectionName: Inject[(ConnectionIdentifier, String) ⇒ String]
Calculate the name of a collection based on the full class name of the MongoDocument/MongoRecord.
Calculate the name of a collection based on the full class name of the MongoDocument/MongoRecord. Must be set in Boot before any code that touches the MongoDocumentMeta/MongoMetaRecord.
To get snake_case, use this
RecordRules.collectionName.default.set((_,name) => StringHelpers.snakify(name))
-
val
defaultWriteConcern: Inject[WriteConcern]
The default WriteConcern used in some places.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
implicit
def
inject[T](implicit man: Manifest[T]): Box[T]
Perform the injection for the given type.
Perform the injection for the given type. You can call: inject[Date] or inject[List[Map[String, PaymentThing]]]. The appropriate Manifest will be
- Definition Classes
- SimpleInjector → Injector
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
registerInjection[T](f: () ⇒ T)(implicit man: Manifest[T]): Unit
Register a function that will inject for the given Manifest
Register a function that will inject for the given Manifest
- Definition Classes
- SimpleInjector
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )