 |
Article:
 |
 |
Breaking the Last Dependency
|
| Subject: |
Sorry, a map based registry would have been better |
| Date: |
2005-09-07 09:41:12 |
| From: |
gualberto |
|
Response to: Sorry, a map based registry would have been better
|

|
|
Very good aproach, but we have a problem. Your actor class's static initializer will be executed only when the class is 'touched' by the JVM (aka, when you use it first time by anyway) . So they will never register themselves in the factory, considering that the only way that they can be used (touched) is through the instantiation by the factory. What comes first ?. the egg or the chicken ? |
|