Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2007, 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.managed.api;
 
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
A collection of ManagedComponent and structural information about a deployment.

Author(s):
Scott.Stark@jboss.org
Version:
$Revision: 73467 $
 
 public interface ManagedDeployment
 {
   
The phase of deployment
 
    public enum DeploymentPhase {
      
A deployment loaded during the server bootstrap phase
 
       BOOTSTRAP,
      
An mc/service deployment for a Deployer to be loaded after the BOOTSTRAP phase
 
       DEPLOYER,
      
Any deployment content to be loaded after the DEPLOYER phase
 
       APPLICATION,
      
Any deployment content to be loaded across a 'cluster' after the APPLICATION phase
 
       APPLICATION_CLUSTERED
    };

   
Get the full name of the associated DeploymentUnit.

Returns:
full name of the DeploymentUnit
 
    public String getName();
   
Get the simple name (x.ear) for the deployment

Returns:
simple name of the deployment
 
    public String getSimpleName();
   
Get the phase this deployment is associated with

Returns:
the phase
 
    public DeploymentPhase getDeploymentPhase();
   
Add a deployment/module type

Parameters:
type
Returns:
true if the type was added, false if it already exists
 
    public boolean addType(String type);
   
Get the deployment/module types.

Returns:
deployment types
 
    public Set<StringgetTypes();
   
Get the deployment/module types.

Parameters:
types
 
    public void setTypes(Set<Stringtypes);

   
Get the managed property names

Returns:
the property names
 
    public Set<StringgetPropertyNames();
   
Get a property

Parameters:
name the name
Returns:
the property
 
    public ManagedProperty getProperty(String name);
   
   
Get the properties

Returns:
the properties
   public Map<StringManagedPropertygetProperties();

   
Get the managed object names

Returns:
the property names
   public ManagedObject getManagedObject(String name);

   

Returns:
the parent
   public ManagedComponent getComponent(String name);

   
Get the ManagedComponents for the deployment module.

Returns:
ManagedComponents for the deployment module.
   public Map<StringManagedComponentgetComponents();
   
Get the nested deployment modules.

Returns:
nested deployment modules.
   public List<ManagedDeploymentgetChildren();

   
Get the DeploymentTemplate names for components that can be added to this deployment.

Returns:
the template names
   public Set<StringgetComponentTemplateNames();

   
Add a component to this deployment

Parameters:
name the name
comp the component
   public void addComponent(String nameManagedComponent comp);
   

Parameters:
name the name
Returns:
true when it was removed
   public boolean removeComponent(String name);

   
Get the DeploymentTemplate names for deployments that can be added to this deployment.

Returns:
the template names
   public Set<StringgetDeploymentTemplateNames();
   
Add a deployment

Parameters:
deplymentBaseName
info
Returns:
the deployment
   public ManagedDeployment addModule(String deplymentBaseNameDeploymentTemplateInfo info);
New to GrepCode? Check out our FAQ X