NVPairManager pm = new NVPairManager( parameters );
String collection_interface = pm.find_string_param( CollectionService.COL_INTRF );
String implementation_interface = pm.find_string_param( CollectionService.IMPL_INTRF );
String implementation_category = pm.find_string_param( CollectionService.IMPL_CAT );
if( implementation_category != null && !implementation_category.equals( IMPL_CATEGORY ) ) {
throw new ParameterInvalid( pm.find_param_idx( CollectionService.IMPL_CAT ), "CollectionFactory : not support implementation category "+implementation_category );
}
Integer size = pm.find_ulong_param( CollectionService.EXP_SIZE );
if ( size == null ) {
size = new Integer(10);
}
Operations ops = pm.find_operations_param( CollectionService.OPERATIONS );
if ( ops == null ) {
String ops_class = pm.find_string_param( CollectionService.OPERATIONS_CLASS );
if( ops_class == null ){
throw new ParameterInvalid( pm.find_param_idx(CollectionService.OPERATIONS), "CollectionFactory: OPERATION object not defined" );
}
return create( ops_class, size.intValue() );
} else {
return create( ops, size.intValue() );
}