configuration context
[context hierarchy]


Files

file  axis2_conf_ctx.h

Classes

struct  axis2_conf_ctx_ops
struct  axis2_conf_ctx

Defines

#define AXIS2_CONF_CTX_SET_CONF(conf_ctx, env, conf)   ((conf_ctx)->ops->set_conf(conf_ctx, env, conf))
#define AXIS2_CONF_CTX_GET_BASE(conf_ctx, env)   ((conf_ctx)->ops->get_base(conf_ctx, env))
#define AXIS2_CONF_CTX_GET_CONF(conf_ctx, env)   ((conf_ctx)->ops->get_conf(conf_ctx, env))
#define AXIS2_CONF_CTX_GET_OP_CTX_MAP(conf_ctx, env)   ((conf_ctx)->ops->get_op_ctx_map(conf_ctx, env))
#define AXIS2_CONF_CTX_GET_SVC_CTX_MAP(conf_ctx, env)   ((conf_ctx)->ops->get_svc_ctx_map(conf_ctx, env))
#define AXIS2_CONF_CTX_GET_SVC_GRP_CTX_MAP(conf_ctx, env)   ((conf_ctx)->ops->get_svc_grp_ctx_map(conf_ctx, env))
#define AXIS2_CONF_CTX_REGISTER_OP_CTX(conf_ctx, env, message_id, op_ctx)   ((conf_ctx)->ops->register_op_ctx(conf_ctx, env, message_id, op_ctx))
#define AXIS2_CONF_CTX_GET_OP_CTX(conf_ctx, env, message_id)   ((conf_ctx)->ops->get_op_ctx(conf_ctx, env, message_id))
#define AXIS2_CONF_CTX_REGISTER_SVC_CTX(conf_ctx, env, svc_id, svc_ctx)   ((conf_ctx)->ops->register_svc_ctx(conf_ctx, env, svc_id, svc_ctx))
#define AXIS2_CONF_CTX_GET_SVC_CTX(conf_ctx, env, svc_id)   ((conf_ctx)->ops->get_svc_ctx(conf_ctx, env, svc_id))
#define AXIS2_CONF_CTX_REGISTER_SVC_GRP_CTX(conf_ctx, env, svc_grp_id, svc_grp_ctx)   ((conf_ctx)->ops->register_svc_grp_ctx(conf_ctx, env, svc_grp_id, svc_grp_ctx))
#define AXIS2_CONF_CTX_GET_SVC_GRP_CTX(conf_ctx, env, svc_grp_id)   ((conf_ctx)->ops->get_svc_grp_ctx(conf_ctx, env, svc_grp_id))
#define AXIS2_CONF_CTX_GET_ROOT_DIR(conf_ctx, env)   ((conf_ctx)->ops->get_root_dir(conf_ctx, env))
#define AXIS2_CONF_CTX_SET_ROOT_DIR(conf_ctx, env, path)   ((conf_ctx)->ops->set_root_dir(conf_ctx, env, path))
#define AXIS2_CONF_CTX_INIT(conf_ctx, env, conf)   ((conf_ctx)->ops->init(conf_ctx, env, conf))
#define AXIS2_CONF_CTX_FREE(conf_ctx, env)   ((conf_ctx)->ops->free(conf_ctx, env))
#define AXIS2_CONF_CTX_FILL_CTXS(conf_ctx, env, msg_ctx)   ((conf_ctx)->ops->fill_ctxs(conf_ctx, env, msg_ctx))

Typedefs

typedef axis2_conf_ctx_ops axis2_conf_ctx_ops_t
typedef axis2_conf_ctx axis2_conf_ctx_t

Functions

AXIS2_EXTERN axis2_conf_ctx_taxis2_conf_ctx_create (const axis2_env_t *env, struct axis2_conf *conf)

Detailed Description

configuration context is the holder for all the state information related to configuration. It holds all the service group context, service context and operation context that exists within an engine instance. An engine instance has only one configuration context associated with it (Singleton pattern).

Define Documentation

#define AXIS2_CONF_CTX_FILL_CTXS conf_ctx,
env,
msg_ctx   )     ((conf_ctx)->ops->fill_ctxs(conf_ctx, env, msg_ctx))
 

Fill context hierarchy related to the service and operation set in message context.

See also:
axis2_conf_ctx_ops::fill_ctxs

#define AXIS2_CONF_CTX_FREE conf_ctx,
env   )     ((conf_ctx)->ops->free(conf_ctx, env))
 

Frees the configuration context.

See also:
axis2_conf_ctx_ops::free

#define AXIS2_CONF_CTX_GET_BASE conf_ctx,
env   )     ((conf_ctx)->ops->get_base(conf_ctx, env))
 

Gets base which is of type context.

See also:
axis2_conf_ctx_ops::get_base

#define AXIS2_CONF_CTX_GET_CONF conf_ctx,
env   )     ((conf_ctx)->ops->get_conf(conf_ctx, env))
 

Gets the configuration.

See also:
axis2_conf_ctx_ops::get_conf

#define AXIS2_CONF_CTX_GET_OP_CTX conf_ctx,
env,
message_id   )     ((conf_ctx)->ops->get_op_ctx(conf_ctx, env, message_id))
 

Gets the operation context with given message ID.

See also:
axis2_conf_ctx_ops::get_op_ctx

#define AXIS2_CONF_CTX_GET_OP_CTX_MAP conf_ctx,
env   )     ((conf_ctx)->ops->get_op_ctx_map(conf_ctx, env))
 

Gets the operation context map.

See also:
axis2_conf_ctx_ops::get_op_ctx_map

#define AXIS2_CONF_CTX_GET_ROOT_DIR conf_ctx,
env   )     ((conf_ctx)->ops->get_root_dir(conf_ctx, env))
 

Gets the root directory.

See also:
axis2_conf_ctx_ops::get_root_dir

#define AXIS2_CONF_CTX_GET_SVC_CTX conf_ctx,
env,
svc_id   )     ((conf_ctx)->ops->get_svc_ctx(conf_ctx, env, svc_id))
 

Gets the service context with given service ID.

See also:
axis2_conf_ctx_ops::get_svc_ctx

#define AXIS2_CONF_CTX_GET_SVC_CTX_MAP conf_ctx,
env   )     ((conf_ctx)->ops->get_svc_ctx_map(conf_ctx, env))
 

Gets the service context map.

See also:
axis2_conf_ctx_ops::get_svc_ctx_map

#define AXIS2_CONF_CTX_GET_SVC_GRP_CTX conf_ctx,
env,
svc_grp_id   )     ((conf_ctx)->ops->get_svc_grp_ctx(conf_ctx, env, svc_grp_id))
 

Gets the service group context with given service group ID.

See also:
axis2_conf_ctx_ops::get_svc_grp_ctx

#define AXIS2_CONF_CTX_GET_SVC_GRP_CTX_MAP conf_ctx,
env   )     ((conf_ctx)->ops->get_svc_grp_ctx_map(conf_ctx, env))
 

Gets the service group context map.

See also:
axis2_conf_ctx_ops::get_svc_grp_ctx_map

#define AXIS2_CONF_CTX_INIT conf_ctx,
env,
conf   )     ((conf_ctx)->ops->init(conf_ctx, env, conf))
 

Initializes the configuration context.

See also:
axis2_conf_ctx_ops::init

#define AXIS2_CONF_CTX_REGISTER_OP_CTX conf_ctx,
env,
message_id,
op_ctx   )     ((conf_ctx)->ops->register_op_ctx(conf_ctx, env, message_id, op_ctx))
 

Registers the operation context with given message ID.

See also:
axis2_conf_ctx_ops::register_op_ctx

#define AXIS2_CONF_CTX_REGISTER_SVC_CTX conf_ctx,
env,
svc_id,
svc_ctx   )     ((conf_ctx)->ops->register_svc_ctx(conf_ctx, env, svc_id, svc_ctx))
 

Registers the service context with given service ID.

See also:
axis2_conf_ctx_ops::register_svc_ctx

#define AXIS2_CONF_CTX_REGISTER_SVC_GRP_CTX conf_ctx,
env,
svc_grp_id,
svc_grp_ctx   )     ((conf_ctx)->ops->register_svc_grp_ctx(conf_ctx, env, svc_grp_id, svc_grp_ctx))
 

Registers the service group context with given service group ID.

See also:
axis2_conf_ctx_ops::register_svc_grp_ctx

#define AXIS2_CONF_CTX_SET_CONF conf_ctx,
env,
conf   )     ((conf_ctx)->ops->set_conf(conf_ctx, env, conf))
 

Sets the configuration.

See also:
axis2_conf_ctx_ops::set_conf

#define AXIS2_CONF_CTX_SET_ROOT_DIR conf_ctx,
env,
path   )     ((conf_ctx)->ops->set_root_dir(conf_ctx, env, path))
 

Sets the root directory.

See also:
axis2_conf_ctx_ops::set_root_dir


Typedef Documentation

typedef struct axis2_conf_ctx_ops axis2_conf_ctx_ops_t
 

Type name for struct axis2_conf_ctx_ops

typedef struct axis2_conf_ctx axis2_conf_ctx_t
 

Type name for struct axis2_conf_ctx


Function Documentation

AXIS2_EXTERN axis2_conf_ctx_t* axis2_conf_ctx_create const axis2_env_t env,
struct axis2_conf conf
 

Creates a configuration context struct instance.

Parameters:
env pointer to environment struct
conf pointer to configuration, configuration context assumes ownership of the configuration
Returns:
pointer to newly created configuration context


Generated on Thu Aug 31 17:32:41 2006 for Axis2/C by  doxygen 1.4.6