BaseModule Class
Module of DDD pattern.
Methods
createFactory
-
modFirstName
create a factory instance 2nd, 3rd, 4th ... arguments are the params to pass to the constructor of the factory
Parameters:
-
modFirstName
String
Returns:
createModel
-
modFirstName
-
obj
-
[options]
-
[root]
create an instance of the given modFirstName using obj if obj is null or undefined, empty object will be created.
Parameters:
-
modFirstName
String -
obj
Object -
[options]
Object optional -
[root]
RootInterface optional
Returns:
createPreferredFactory
-
modFirstName
-
[options]
create a preferred factory instance 3rd, 4th ... arguments are the params to pass to the constructor of the factory
Parameters:
-
modFirstName
String -
[options]
Object optional-
[noParent=true]
Object optionalif true, stop requiring parent class
-
Returns:
createPreferredRepository
-
modFirstName
-
[options]
create a preferred repository instance 3rd, 4th ... arguments are the params to pass to the constructor of the repository
Parameters:
-
modFirstName
String -
[options]
Object optional-
[noParent]
Object optionalif true, stop requiring parent class
-
Returns:
createPreferredService
-
modFirstName
-
[options]
create a preferred service instance 2nd, 3rd, 4th ... arguments are the params to pass to the constructor of the factory
Parameters:
-
modFirstName
String -
[options]
Object optional-
[noParent=true]
Object optionalif true, stop requiring parent class
-
Returns:
createRepository
-
modFirstName
create a repository instance 2nd, 3rd, 4th ... arguments are the params to pass to the constructor of the repository
Parameters:
-
modFirstName
String
Returns:
createService
-
modFirstName
create a service instance 2nd, 3rd, 4th ... arguments are the params to pass to the constructor of the service
Parameters:
-
modFirstName
String
Returns:
getModel
-
firstName
get a model class in the module
Parameters:
-
firstName
String
Returns:
require
-
modFullName
read a file and returns class
Parameters:
-
modFullName
String
Returns:
Properties
isRoot
Boolean
static
is root (to identify RootInterface)