/**
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 * http://www.dspace.org/license/
 */
package org.dspace.servicemanager.fakeservices;

import java.io.Serializable;
import javax.annotation.PostConstruct;

/**
 * Simple fake service 2
 *
 * @author Aaron Zeckoski (azeckoski @ gmail.com)
 */
public class FakeService2 implements Comparable<FakeService2>, Serializable {
    private static final long serialVersionUID = 1L;

    public String data = "data";

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @PostConstruct
    public void init() {
        data = "initData";
    }

    @Override
    public int compareTo(FakeService2 o) {
        return data.compareTo(o.data);
    }

}
