org.figure8.join.view
Class EnvironmentView

java.lang.Object
  extended by org.figure8.join.view.EnvironmentView
All Implemented Interfaces:
java.io.Serializable

public class EnvironmentView
extends java.lang.Object
implements java.io.Serializable

This is a JavaBean encapsulating a LogicalEnvironemnt domain model object and its information on last deployment done.
Instance of EnvironemntView class are intended to be stored within an Http layer context.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Field Summary
protected  LogicalEnvironment environment
          The encapsulated environment domain object
protected  Deployment lastDeployment
          The optionnal last deployment completed onto this environment
 
Constructor Summary
EnvironmentView(LogicalEnvironment environment, Deployment lastDeployment)
          Creates a new instance of EnvironmentView
 
Method Summary
 Assembly getDeployedAssembly()
           
 Deployment getLastDeployment()
           
 LogicalEnvironment getLogicalEnvironment()
           
 boolean isDeployed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

environment

protected LogicalEnvironment environment
The encapsulated environment domain object


lastDeployment

protected Deployment lastDeployment
The optionnal last deployment completed onto this environment

Constructor Detail

EnvironmentView

public EnvironmentView(LogicalEnvironment environment,
                       Deployment lastDeployment)
Creates a new instance of EnvironmentView

Parameters:
environment - The encapsulated environment domain object
lastDeployment - Information on last deployment done onto environment (may be null)
Method Detail

getLogicalEnvironment

public LogicalEnvironment getLogicalEnvironment()
Returns:
The encapsulated environment domain object

getLastDeployment

public Deployment getLastDeployment()
Returns:
The last deployment done onto this environment

isDeployed

public boolean isDeployed()
Returns:
A flag telling if environment is currently deployed

getDeployedAssembly

public Assembly getDeployedAssembly()
Returns:
The deployed assembly onto this environment if any, else null


Copyright © 2005-2008 Join. All Rights Reserved.