blob: 293b521f4fa145adaf9ea3eb72a5d1c6e26fb541 [file] [log] [blame]
/*
* Copyright 2004,2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <woden_configurable_component.h>
axis2_status_t AXIS2_CALL
woden_configurable_component_resolve_methods(
woden_configurable_component_t *configurable_component,
const axis2_env_t *env,
axis2_hash_t *methods)
{
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
configurable_component->ops->free = axis2_hash_get(methods, "free",
AXIS2_HASH_KEY_STRING);
configurable_component->ops->to_configurable_component_free = axis2_hash_get(methods,
"to_configurable_component_free", AXIS2_HASH_KEY_STRING);
configurable_component->ops->type = axis2_hash_get(methods, "type",
AXIS2_HASH_KEY_STRING);
configurable_component->ops->get_features = axis2_hash_get(methods,
"get_features", AXIS2_HASH_KEY_STRING);
configurable_component->ops->get_properties = axis2_hash_get(methods,
"get_properties", AXIS2_HASH_KEY_STRING);
return AXIS2_SUCCESS;
}