S
ShadowMan
Hi all
my webapp needs to initialize a lot of classes during the startup.
At moment all these classes implement Initializable interface and are
invoked though the reflection (I have an external configuration file).
A lot of these classes are Singleton/Factory that have a _static_ init()
method, so I need an InitializerClass for each of them, wich simply invokes
the init() method of the class to be initialized!
Are you seeing a more _elegant_ way to "startup" my system?!
Regards that not all classes to be initialized have static init() method...
my webapp needs to initialize a lot of classes during the startup.
At moment all these classes implement Initializable interface and are
invoked though the reflection (I have an external configuration file).
A lot of these classes are Singleton/Factory that have a _static_ init()
method, so I need an InitializerClass for each of them, wich simply invokes
the init() method of the class to be initialized!
Are you seeing a more _elegant_ way to "startup" my system?!
Regards that not all classes to be initialized have static init() method...