001/* 002 * Copyright (c) 2006-2011 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 * 009 * Contributors: 010 * Thomas Roger <troger@nuxeo.com> 011 */ 012 013package org.nuxeo.ecm.core.api.localconfiguration; 014 015import org.nuxeo.ecm.core.api.CoreSession; 016 017/** 018 * Base class for {@link LocalConfiguration} implementers. 019 * <p> 020 * Provides default implementation for most methods. 021 * 022 * @author <a href="mailto:troger@nuxeo.com">Thomas Roger</a> 023 * @since 5.5 024 */ 025public abstract class AbstractLocalConfiguration<T> implements LocalConfiguration<T> { 026 027 @Override 028 public boolean canMerge() { 029 return false; 030 } 031 032 @Override 033 public T merge(T other) { 034 return other; 035 } 036 037 @Override 038 public void save(CoreSession session) { 039 // do nothing 040 } 041 042}