costin 02/05/09 13:51:29 Modified: jk/native2/include jk_bean.h Log: Add a state, to prevent double initialization and simplify things. Add 'introspection' info about multi-value properties. I'm still looking into that ( the issue is how we save/restore/change dynamically multi-valued properties ) Added a 'version' field for each object - it will allow 'targeted' updates. I'm trying to generalize the mechanism used to update workes, so any attribute of any object can be set at runtime ( like in JMX world ), and to persist this automatically. Revision Changes Path 1.2 +18 -0 jakarta-tomcat-connectors/jk/native2/include/jk_bean.h Index: jk_bean.h =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/include/jk_bean.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- jk_bean.h 8 May 2002 23:47:27 -0000 1.1 +++ jk_bean.h 9 May 2002 20:51:29 -0000 1.2 @@ -77,6 +77,10 @@ struct jk_bean; typedef struct jk_bean jk_bean_t; +#define JK_STATE_DISABLED 0 +#define JK_STATE_NEW 1 +#define JK_STATE_INIT 2 + /** * Factory used to create all jk objects. Factories are registered with * jk2_env_registerFactory. The 'core' components are registered in @@ -136,10 +140,17 @@ */ int debug; + int state; + /* Common information - if set the component will not be * initialized or used */ int disabled; + + /** Object 'version'. Used to detect changes in config. + * XXX will be set to the timestamp of the last config modification. + */ + long ver; /** Unprocessed settings that are set on this bean by the config apis ( i.e. with $() in it ). @@ -162,6 +173,13 @@ struct jk_pool *pool; /* Temp - will change !*/ + + /* Multi-value attributes. Must be declared so config knows how + to save them. XXX we'll have to use a special syntax for that, + the Preferences API and registry don't seem to support them. + */ + char **multiValueInfo; + /* Attributes supported by getAttribute method */ char **getAttributeInfo;
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>