costin 02/03/24 19:32:35
Modified: jk/native2/include jk_env.h
Log:
Added a better creation method ( moved from jk_config ), easier to use.
It uses the full name and return the jk_bean ( to be used for futher config )
Revision Changes Path
1.10 +12 -1 jakarta-tomcat-connectors/jk/native2/include/jk_env.h
Index: jk_env.h
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/include/jk_env.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- jk_env.h 24 Mar 2002 19:21:40 -0000 1.9
+++ jk_env.h 25 Mar 2002 03:32:35 -0000 1.10
@@ -222,12 +222,23 @@
* XXX Not implemented/not used
*/
void (JK_METHOD *jkClearException)( jk_env_t *env );
+
+ /** Create an object using the name. Use the : separated prefix as
+ * type. XXX This should probably replace createInstance.
+ *
+ * @param parentPool The pool of the parent. The object is created in its own
pool,
+ * but if the parent is removed all childs will be removed
as well. Use a long
+ * lived pool ( env->globalPool, workerEnv->pool ) if you
don't want this.
+ * @param objName. It must follow the documented convention, with the type as
prefix, then ':'
+ */
+ struct jk_bean *(*createBean)( struct jk_env *env, struct jk_pool *parentPool,
char *objName );
+
/** Create an object instance. It'll first get the factory, then
call it. This is a very frequent operation.
*/
void *
- (JK_METHOD *createInstance)( jk_env_t *env, struct jk_pool *pool,
+ (JK_METHOD *createInstance)( jk_env_t *env, struct jk_pool *parentPool,
const char *type, const char *name );
void *
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>