ClassFactory
Extends:
A generator class that instantiates new classes of type classConstruct.
Constructor Summary
| Public Constructor | ||
| public |
constructor(classConstruct: *, props: *, passPropertiesToConstructor: *) |
|
Member Summary
| Public Members | ||
| public |
The constructor to instantiate |
|
| public |
If true, passes the properties to constructor, if false, loops through properties and sets them individually on the bean |
|
| public |
properties: * The properties to apply to this constructors |
|
Method Summary
| Public Methods | ||
| public |
getClassNames(): string[] |
|
| public |
newInstance(props: *, passPropertiesIfReactComponent: *): * Creates a new instance of the object specified by the class construct |
|
Inherited Summary
| From class TypedObject | ||
| public |
typeCache: {} |
|
| public |
|
|
| public |
Returns a list of strings that represent the object hierarchy for this object. |
|
| public |
implementsOrExtends(name: *): Boolean Returns true if the class name to check is in the list of class names defined for this class. |
|
Public Constructors
public constructor(classConstruct: *, props: *, passPropertiesToConstructor: *) source
Override:
TypedObject#constructorParams:
| Name | Type | Attribute | Description |
| classConstruct | * | ||
| props | * | ||
| passPropertiesToConstructor | * |
Public Members
public passPropertiesToConstructor: * source
If true, passes the properties to constructor, if false, loops through properties and sets them individually on the bean
Public Methods
public getClassNames(): string[] source
Returns a list of strings that represent the object hierarchy for this object.
Override:
TypedObject#getClassNamespublic newInstance(props: *, passPropertiesIfReactComponent: *): * source
Creates a new instance of the object specified by the class construct
Params:
| Name | Type | Attribute | Description |
| props | * | ||
| passPropertiesIfReactComponent | * |
Return:
| * |