X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.specs%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fdeploy%2FModuleDescriptor.java;h=6a261583c2f3b767362c0b077b9224405c9f78e8;hb=645840383404d5962ca2af85c2020c3d66219518;hp=3cc4e7f86ef0b510dfec9a4cdde6b0d69fdd039f;hpb=1fdb1b4e7b1d2b0cabb6483238301b857a6392fa;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/deploy/ModuleDescriptor.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/deploy/ModuleDescriptor.java index 3cc4e7f86..6a261583c 100644 --- a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/deploy/ModuleDescriptor.java +++ b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/deploy/ModuleDescriptor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Mathieu Baudier + * Copyright (C) 2007-2012 Mathieu Baudier * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,24 +13,28 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.argeo.slc.deploy; import java.io.Serializable; +import java.util.HashMap; +import java.util.Map; -import org.argeo.slc.build.BasicNameVersion; +import org.argeo.slc.BasicNameVersion; +/** The description of a versioned module. */ public class ModuleDescriptor extends BasicNameVersion implements Serializable { - private static final long serialVersionUID = 1L; - private String label; + private static final long serialVersionUID = 4310820315478645419L; + private String title; private String description; + private Map metadata = new HashMap(); + private Boolean started = false; - public String getLabel() { - return label; + public String getTitle() { + return title; } - public void setLabel(String label) { - this.label = label; + public void setTitle(String title) { + this.title = title; } public String getDescription() { @@ -41,4 +45,30 @@ public class ModuleDescriptor extends BasicNameVersion implements Serializable { this.description = description; } + /** @deprecated use {@link #getTitle()} instead */ + public String getLabel() { + return title; + } + + /** @deprecated use {@link #setTitle(String)} instead */ + public void setLabel(String label) { + this.title = label; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public Boolean getStarted() { + return started; + } + + public void setStarted(Boolean started) { + this.started = started; + } + }