]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/lib/vbox/VBoxMachine.java
Improve versioning driver
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.simple / src / main / java / org / argeo / slc / lib / vbox / VBoxMachine.java
1 /*
2 * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package org.argeo.slc.lib.vbox;
18
19 import org.argeo.slc.UnsupportedException;
20 import org.argeo.slc.build.Distribution;
21 import org.argeo.slc.deploy.DeployedSystem;
22 import org.argeo.slc.deploy.DeploymentData;
23 import org.argeo.slc.deploy.TargetData;
24 import org.springframework.beans.factory.BeanNameAware;
25 import org.springframework.beans.factory.InitializingBean;
26
27 public class VBoxMachine implements DeployedSystem, BeanNameAware,
28 InitializingBean {
29 private String deployedSystemId = null;
30 private String name;
31 private String beanName;
32
33 public String getDeployedSystemId() {
34 return deployedSystemId;
35 }
36
37 public DeploymentData getDeploymentData() {
38 throw new UnsupportedException();
39 }
40
41 public Distribution getDistribution() {
42 throw new UnsupportedException();
43 }
44
45 public TargetData getTargetData() {
46 throw new UnsupportedException();
47 }
48
49 public String getName() {
50 return name;
51 }
52
53 public void setName(String name) {
54 this.name = name;
55 }
56
57 public void setDeployedSystemId(String deployedSystemId) {
58 this.deployedSystemId = deployedSystemId;
59 }
60
61 public void setBeanName(String beanName) {
62 this.beanName = name;
63 }
64
65 public void afterPropertiesSet() throws Exception {
66 if (name == null)
67 name = beanName;
68 }
69
70 }