If Nucleus is expected to create a component automatically from a properties file or from any other means, then your class must be declared public and it must implement a public constructor with no arguments. For example

public class Person {
  public Person () {}
}

The constructor is not required to be empty. However, as you’ll see later in this chapter, it is often a good idea to put off the initialization functions until the component is started.

 
loading table of contents...