org.jboss.deployers.plugins.classloading
Class Domain

java.lang.Object
  extended by org.jboss.deployers.plugins.classloading.Domain

public class Domain
extends Object

Domain. TODO JBMICROCONT-182 - need to include some parent delegation as well

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
Domain(String name)
          Create a new Domain.
 
Method Summary
 void addDeploymentUnit(org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit, org.jboss.deployers.structure.spi.classloading.ClassLoaderMetaData metadata)
          Add a deployment unit
protected  Module getModule(String name)
          Get a module for a name
 String getName()
          Get the name.
protected  void removeModule(Module module)
          Remove a deployment
protected  Object resolve(org.jboss.dependency.spi.Controller controller, Module module, org.jboss.deployers.structure.spi.classloading.Requirement requirement)
          Resolve the requirement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Domain

public Domain(String name)
Create a new Domain.

Parameters:
name - the name
Throws:
IllegalArgumentException - for a null domain
Method Detail

getName

public String getName()
Get the name.

Returns:
the name.

addDeploymentUnit

public void addDeploymentUnit(org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit,
                              org.jboss.deployers.structure.spi.classloading.ClassLoaderMetaData metadata)
Add a deployment unit

Parameters:
deploymentUnit - the deployment unit
metadata - the classloader metadata
Throws:
IllegalArgumentException - for a null parameter

getModule

protected Module getModule(String name)
Get a module for a name

Parameters:
name - the name
Returns:
the module

resolve

protected Object resolve(org.jboss.dependency.spi.Controller controller,
                         Module module,
                         org.jboss.deployers.structure.spi.classloading.Requirement requirement)
Resolve the requirement

Parameters:
controller - the controller
module - the module
requirement - the requirement
Returns:
the resolved name or null if not resolved

removeModule

protected void removeModule(Module module)
Remove a deployment

Parameters:
module - the module
Throws:
IllegalArgumentException - for a null parameter


Copyright © 2008 JBoss Inc.. All Rights Reserved.