get the environment from the given registry if possible , otherwise return a new standardenvironment . concode_field_sep BeanDefinitionRegistry registry concode_elem_sep ConditionEvaluator conditionEvaluator concode_elem_sep ScopeMetadataResolver scopeMetadataResolver concode_elem_sep BeanNameGenerator beanNameGenerator concode_field_sep BeanDefinitionRegistry getRegistry concode_elem_sep void setBeanNameGenerator concode_elem_sep void setScopeMetadataResolver concode_elem_sep void setEnvironment concode_elem_sep void registerBean concode_elem_sep void registerBean concode_elem_sep void registerBean concode_elem_sep void register
Environment function ( BeanDefinitionRegistry arg0 ) { Assert . notNull ( arg0 , "srini_string" ) ; if ( arg0 instanceof EnvironmentCapable ) { return ( ( EnvironmentCapable ) arg0 ) . getEnvironment ( ) ; } return new StandardEnvironment ( ) ; }