org.jboss.profileservice.spi
Interface ProfileDeployment

All Superinterfaces:
Serializable

public interface ProfileDeployment
extends Serializable

The profile deployment.

Version:
$Revision$
Author:
Emanuel Muckenhuber

Method Summary
 Object addAttachment(String name, Object attachment)
          Add attachment
 Object getAttachment(String name)
          Get attachment.
 Map<String,Object> getAttachments()
          Get all attachments.
 String getName()
          Get the deployment name
 org.jboss.virtual.VirtualFile getRoot()
          Get the root of the deployment
 

Method Detail

getName

String getName()
Get the deployment name

Returns:
the name

getRoot

org.jboss.virtual.VirtualFile getRoot()
Get the root of the deployment

Returns:
the deployment root, null if it's not a VFS based deployment

getAttachments

Map<String,Object> getAttachments()
Get all attachments.

Returns:
the attachments

getAttachment

Object getAttachment(String name)
Get attachment.

Parameters:
name - the name of the attachment
Returns:
the attachment or null if not present
Throws:
IllegalArgumentException - for a null name

addAttachment

Object addAttachment(String name,
                     Object attachment)
Add attachment

Parameters:
name - the name of the attachment
attachment - the attachment
Returns:
any previous attachment
Throws:
IllegalArgumentException - for a null name or attachment


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.