Using a resolve function when implementing Dynamic

Now we are going to use what we've just learned. We are going to implement a Component class that will be instantiated from a configuration file.

A component will have properties and metadata. Such properties and metadata are not pre-determined, which means that the properties' names and values will be read from the configuration file.

Each line of the configuration file will hold the name of the property or metadata, its value, and a 0 if it's a property (or otherwise it will be a metadata). Each of these fields will be separated by a space.

The last constraint is that we should be able to read the value of a property or metadata by using the dot-notation.

Get haXe 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.