| Package | org.openPyro.core |
| Class | public class ClassFactory |
| Property | Defined by | ||
|---|---|---|---|
| generator : Class
The Class that the
newInstance() method uses
to generate objects from this factory object. | ClassFactory | ||
| properties : Object = null
An Object whose name/value pairs specify the properties to be set
on each object generated by the
newInstance() method. | ClassFactory | ||
| Method | Defined by | ||
|---|---|---|---|
|
ClassFactory(generator:Class = null)
Constructor.
| ClassFactory | ||
|
newInstance():*
Creates a new instance of the
generator class,
with the properties specified by properties. | ClassFactory | ||
| generator | property |
public var generator:Class
The Class that the newInstance() method uses
to generate objects from this factory object.
| properties | property |
public var properties:Object = null
An Object whose name/value pairs specify the properties to be set
on each object generated by the newInstance() method.
For example, if you set properties to
{ text: "Hello", width: 100 }, then every instance
of the generator class that is generated by calling
newInstance() will have its text set to
"Hello" and its width set to
100.
The default value is null.
| ClassFactory | () | constructor |
public function ClassFactory(generator:Class = null)Constructor.
Parametersgenerator:Class (default = null) — The Class that the newInstance() method uses
to generate objects from this factory object.
|
| newInstance | () | method |
public function newInstance():*
Creates a new instance of the generator class,
with the properties specified by properties.
This method implements the newInstance() method
of the IFactory interface.
* — The new instance that was created.
|