1 package org.apache.archiva.repository.events;
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
22 import org.apache.archiva.repository.Repository;
25 * Repository value events are used for providing information about repository attribute changes.
26 * The value event gives information of the attribute value before and after the change.
28 * @param <V> The type of the changed attribute
30 public class RepositoryValueEvent<V> extends RepositoryEvent {
32 private static final long serialVersionUID = 4176597620699304794L;
34 public static final EventType<RepositoryValueEvent<?>> ANY = new EventType(RepositoryEvent.ANY, "REPOSITORY.VALUE");
38 final String attributeName;
40 public RepositoryValueEvent(EventType<? extends RepositoryValueEvent<V>> type, Object origin, Repository repo, V oldValue, V value,
41 String attributeName) {
42 super(type, origin, repo);
44 this.oldValue = oldValue;
45 this.attributeName = attributeName;
52 public V getOldValue() {
56 public String getAttributeName() {