All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.profileservice.spi.ModificationInfo Maven / Gradle / Ivy

There is a newer version: 6.0.0.CR1
Show newest version
/*
 * JBoss, Home of Professional Open Source
 * Copyright 2006, Red Hat Middleware LLC, and individual contributors
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.jboss.profileservice.spi;

import java.io.Serializable;

/**
 * Represents a modified deployment returned from the modified deployments scan.
 *  
 * @see Profile#getModifiedDeployments()
 * 
 * @author [email protected]
 * @author [email protected]
 * @version $Revision: 85287 $
 */
public class ModificationInfo implements Serializable
{
   private final static long serialVersionUID = 1;

   public enum ModifyStatus { ADDED, MODIFIED, REMOVED };
   
   private ProfileDeployment deployment;
   private long lastModified;
   private ModifyStatus status;

   public ModificationInfo(ProfileDeployment deployment, long lastModified, ModifyStatus status)
   {
      this.deployment = deployment;
      this.lastModified = lastModified;
      this.status = status;
   }

   public ProfileDeployment getDeployment()
   {
      return deployment;
   }

   public long getLastModified()
   {
      return lastModified;
   }

   public ModifyStatus getStatus()
   {
      return status;
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy