OW2 Consortium elastic-grid

Rev

Rev 2 | Rev 65 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 jeje 1
/**
2
 * Copyright (C) 2007-2008 Elastic Grid, LLC.
3
 *
55 jeje 4
 * This file is part of Elastic Grid.
2 jeje 5
 *
55 jeje 6
 * Elastic Grid is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU Lesser General Public License as
8
 * published by the Free Software Foundation, either version 3 of the
9
 * License, or (at your option) any later version.
2 jeje 10
 *
55 jeje 11
 * Elastic Grid is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU Lesser General Public License
17
 * along with Elastic Grid.  If not, see <http://www.gnu.org/licenses/>.
2 jeje 18
 */
19
 
20
package com.elasticgrid.model.internal;
21
 
22
import com.elasticgrid.model.Application;
23
import com.elasticgrid.model.OAR;
24
 
25
/**
26
 * @author Jerome Bernard
27
 */
28
public class ApplicationImpl implements Application {
29
    private String name;
30
    private OAR oar;
31
 
32
    public String getName() {
33
        return name;
34
    }
35
 
36
    public OAR createNewOAR() {
37
        oar = new OARImpl();
38
        return oar;
39
    }
40
 
41
    public OAR oar() {
42
        return oar;
43
    }
44
 
45
    public Application name(String name) {
46
        this.name = name;
47
        return this;
48
    }
49
}