Home Reference Source
public class | source

ClassFactory

Extends:

TypedObject → ClassFactory

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

The properties to apply to this constructors

Method Summary

Public Methods
public
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

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#constructor

Params:

NameTypeAttributeDescription
classConstruct *
props *
passPropertiesToConstructor *

Public Members

public classConstruct: * source

The constructor to instantiate

public passPropertiesToConstructor: * source

If true, passes the properties to constructor, if false, loops through properties and sets them individually on the bean

public properties: * source

The properties to apply to this constructors

Public Methods

public getClassNames(): string[] source

Returns a list of strings that represent the object hierarchy for this object.

Override:

TypedObject#getClassNames

Return:

string[]

public newInstance(props: *, passPropertiesIfReactComponent: *): * source

Creates a new instance of the object specified by the class construct

Params:

NameTypeAttributeDescription
props *
passPropertiesIfReactComponent *

Return:

*