org.jboss.deployers.spi.structure
Interface StructureMetaData

All Superinterfaces:
Serializable
All Known Implementing Classes:
StructureMetaDataImpl

public interface StructureMetaData
extends Serializable

A set of subdeployment contexts.

Version:
$Revision: 1.1$
Author:
Scott.Stark@jboss.org, adrian@jboss.org

Method Summary
 void addContext(ContextInfo context)
          Add a context
 ContextInfo getContext(String path)
          Get a context by path
 List<ContextInfo> getContexts()
          Get the contexts
 void removeContext(ContextInfo context)
          Remove a context
 void removeContext(String path)
          Remove a context
 

Method Detail

getContext

ContextInfo getContext(String path)
Get a context by path

Parameters:
path - the path of the context
Returns:
the context or null if there is no such context
Throws:
IllegalArgumentException - for a null path

addContext

void addContext(ContextInfo context)
Add a context

Parameters:
context - the context to add
Throws:
IllegalArgumentException - for a null context or if the context has no path
IllegalStateException - if a context is already present with that path

removeContext

void removeContext(ContextInfo context)
Remove a context

Parameters:
context - the context to remove
Throws:
IllegalArgumentException - for a null context

removeContext

void removeContext(String path)
Remove a context

Parameters:
path - the patch of the context to remove
Throws:
IllegalArgumentException - for a null path

getContexts

List<ContextInfo> getContexts()
Get the contexts

Returns:
an immutable set of contexts


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