Skip to main content
I guess that's me :)
Source Link
palacsint
  • 29.9k
  • 9
  • 81
  • 156

An addition to the strategy and code of @palascint@palacsint is to use Reflection to automatically bind the classes that implement KeyProcessor to the dictionary. This way, you don't have to add each KeyProcessor manually and you don't have to remember it.

Make sure that you only 'reflect' once because it is relatively slow. Thus add it to a static block or in the constructor of a singleton.

An addition to the strategy and code of @palascint is to use Reflection to automatically bind the classes that implement KeyProcessor to the dictionary. This way, you don't have to add each KeyProcessor manually and you don't have to remember it.

Make sure that you only 'reflect' once because it is relatively slow. Thus add it to a static block or in the constructor of a singleton.

An addition to the strategy and code of @palacsint is to use Reflection to automatically bind the classes that implement KeyProcessor to the dictionary. This way, you don't have to add each KeyProcessor manually and you don't have to remember it.

Make sure that you only 'reflect' once because it is relatively slow. Thus add it to a static block or in the constructor of a singleton.

deleted 90 characters in body
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

My lack of reputation prevents me from adding a simple comment, therefore this answer

An addition to the strategy and code of palascint@palascint is to use Reflection to automatically bind the classes that implement KeyProcessor to the dictionary. This way, you don't have to add each KeyProcessor manually and you don't have to remember it.

Make sure that you only 'reflect' once because it is relatively slow. Thus add it to a static block or in the constructor of a singleton.

My lack of reputation prevents me from adding a simple comment, therefore this answer

An addition to the strategy and code of palascint is to use Reflection to automatically bind the classes that implement KeyProcessor to the dictionary. This way, you don't have to add each KeyProcessor manually and you don't have to remember it.

Make sure that you only 'reflect' once because it is relatively slow. Thus add it to a static block or in the constructor of a singleton.

An addition to the strategy and code of @palascint is to use Reflection to automatically bind the classes that implement KeyProcessor to the dictionary. This way, you don't have to add each KeyProcessor manually and you don't have to remember it.

Make sure that you only 'reflect' once because it is relatively slow. Thus add it to a static block or in the constructor of a singleton.

Source Link

My lack of reputation prevents me from adding a simple comment, therefore this answer

An addition to the strategy and code of palascint is to use Reflection to automatically bind the classes that implement KeyProcessor to the dictionary. This way, you don't have to add each KeyProcessor manually and you don't have to remember it.

Make sure that you only 'reflect' once because it is relatively slow. Thus add it to a static block or in the constructor of a singleton.