Java tutorial
/***************************************************************************************** * *** BEGIN LICENSE BLOCK ***** * * Version: MPL 2.0 * * echocat JeMoni, Copyright (c) 2012-2013 echocat * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * *** END LICENSE BLOCK ***** ****************************************************************************************/ package org.echocat.jemoni.carbon.spring; import org.echocat.jemoni.carbon.jmx.configuration.Configuration; import org.springframework.beans.PropertyEditorRegistrar; import org.springframework.beans.PropertyEditorRegistry; import javax.annotation.Nonnull; public class CarbonPropertyEditorRegistrar implements PropertyEditorRegistrar { @Override public void registerCustomEditors(@Nonnull PropertyEditorRegistry registry) { registry.registerCustomEditor(Configuration.class, new RulesPropertyEditor()); } }