public static void putValue ( String registryName , String key , Object value ) { if ( StringUtils . isBlank ( registryName ) || StringUtils . isBlank ( key ) || value == null ) { return ; } Sysprop registryObject = readRegistryObject ( registryName ) ; if ( registryObject == null ) { registryObject = new Sysprop ( getRegistryID ( registryName ) ) ; registryObject . addProperty ( key , value ) ; CoreUtils . getInstance ( ) . getDao ( ) . create ( REGISTRY_APP_ID , registryObject ) ; } else { registryObject . addProperty ( key , value ) ; CoreUtils . getInstance ( ) . getDao ( ) . update ( REGISTRY_APP_ID , registryObject ) ; } }
Add a specific value to a registry . If the registry doesn t exist yet create it .