AppCollectionFactory
@agros/create-app / AppCollectionFactory
Class: AppCollectionFactory
Hierarchy
AbstractGeneratorFactory
↳
AppCollectionFactory
Implements
AbstractGeneratorFactory
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new AppCollectionFactory()
Inherited from
AbstractGeneratorFactory.constructor
Defined in
agros-tools/lib/collection.d.ts:20
Properties
entities
• Protected
entities: EntityDescriptor
[]
Implementation of
AbstractGeneratorFactory.entities
Inherited from
AbstractGeneratorFactory.entities
Defined in
agros-tools/lib/collection.d.ts:19
licenseList
• Private
licenseList: { name
: string
; value
: string
= key }[]
Defined in
create-agros-app/src/app.factory.ts:28
licenseUtils
• Private
licenseUtils: LicenseUtils
Defined in
create-agros-app/src/app.factory.ts:27
projectConfig
• Protected
Readonly
projectConfig: ProjectConfigParser
Implementation of
AbstractGeneratorFactory.projectConfig
Inherited from
AbstractGeneratorFactory.projectConfig
Defined in
agros-tools/lib/collection.d.ts:18
Methods
generate
▸ generate(__namedParameters
): Promise
<CollectionFactoryResult
>
Parameters
Name | Type |
---|---|
__namedParameters | AppCollectionOptions |
Returns
Promise
<CollectionFactoryResult
>
Implementation of
AbstractGeneratorFactory.generate
Overrides
AbstractGeneratorFactory.generate
Defined in
create-agros-app/src/app.factory.ts:30
getEntityDescriptor
▸ Protected
getEntityDescriptor(pathname
): EntityDescriptor
Parameters
Name | Type |
---|---|
pathname | string |
Returns
EntityDescriptor
Implementation of
AbstractGeneratorFactory.getEntityDescriptor
Inherited from
AbstractGeneratorFactory.getEntityDescriptor
Defined in
agros-tools/lib/collection.d.ts:27
modulesPath
▸ Protected
modulesPath(pathname?
): string
Parameters
Name | Type |
---|---|
pathname? | string |
Returns
string
Implementation of
AbstractGeneratorFactory.modulesPath
Inherited from
AbstractGeneratorFactory.modulesPath
Defined in
agros-tools/lib/collection.d.ts:24
projectPath
▸ Protected
projectPath(pathname?
): string
Parameters
Name | Type |
---|---|
pathname? | string |
Returns
string
Implementation of
AbstractGeneratorFactory.projectPath
Inherited from
AbstractGeneratorFactory.projectPath
Defined in
agros-tools/lib/collection.d.ts:22
srcPath
▸ Protected
srcPath(pathname?
): string
Parameters
Name | Type |
---|---|
pathname? | string |
Returns
string
Implementation of
AbstractGeneratorFactory.srcPath
Inherited from
AbstractGeneratorFactory.srcPath
Defined in
agros-tools/lib/collection.d.ts:23
updateEntities
▸ Protected
updateEntities(): void
Returns
void
Implementation of
AbstractGeneratorFactory.updateEntities
Inherited from
AbstractGeneratorFactory.updateEntities
Defined in
agros-tools/lib/collection.d.ts:21
writeFile
▸ Protected
writeFile(pathname
, content
, options?
): Promise
<void
>
Parameters
Name | Type |
---|---|
pathname | string |
content | string |
options? | CollectionWriteFileOptions |
Returns
Promise
<void
>
Implementation of
AbstractGeneratorFactory.writeFile
Inherited from
AbstractGeneratorFactory.writeFile
Defined in
agros-tools/lib/collection.d.ts:25
writeTemplateFile
▸ Protected
writeTemplateFile(source
, target
, props?
, options?
): Promise
<void
>
Parameters
Name | Type |
---|---|
source | string |
target | string |
props? | Record <string , any > |
options? | CollectionWriteFileOptions |
Returns
Promise
<void
>
Implementation of
AbstractGeneratorFactory.writeTemplateFile
Inherited from
AbstractGeneratorFactory.writeTemplateFile
Defined in
agros-tools/lib/collection.d.ts:26