avalon-phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juozas Baliuka" <bali...@centras.lt>
Subject Configurable
Date Sat, 11 May 2002 11:46:36 GMT
Hi,
Is it possible to configure Block without Configurable implementation.
My configuration attributes are dynamic (not known at codding time ) and I am going to implement
 "configure" this way:

  configuration = configuration.getChild("class");

  Object instance = Class.forName( configuration.getAttribute("name"),true,loader )
                                                                                .newInstance();

Configuration[]   properties = configuration.getChildren();

 for (int i = 0; i <= properties.length; i++  ){

  // use intospection and reflection to set properties
  ........................................................... 

 }

Doe's some phoenix service can do this for me ?
It is very usual and don't want to reinvent this way of configuration.











Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message