org.jboss.deployers.plugins.classloading
Class Module

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

public class Module
extends Object

Module.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
Module(Domain domain, org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit, org.jboss.deployers.structure.spi.classloading.ClassLoaderMetaData metadata)
          Create a new Module.
 
Method Summary
 void createDependencies()
          Create the dependencies for the module
 org.jboss.classloader.spi.DelegateLoader getDelegateLoader()
          Get the delegate loader
 List<? extends org.jboss.classloader.spi.DelegateLoader> getDelegates()
          Get the delegate loaders for this module
 org.jboss.deployers.structure.spi.DeploymentUnit getDeploymentUnit()
          Get the deploymentUnit.
 Domain getDomain()
          Get the domain.
 String getDomainName()
          Get the domain name.
 URL getDynamicClassRoot()
           
 org.jboss.deployers.structure.spi.classloading.ExportAll getExportAll()
          Get the export all for the module
 org.jboss.deployers.structure.spi.classloading.ClassLoaderMetaData getMetadata()
          Get the metadata.
 String getName()
          Get the name of the module
 String[] getPackageNames()
           
 String getParentDomain()
          Get the parentDomain.
 org.jboss.classloader.spi.ParentPolicy getParentPolicy()
          Get delegate policy
 boolean isImportAll()
          Get the import all for the module
 void release()
          Release the module
 void reset()
          Reset the module
protected  Object resolve(org.jboss.dependency.spi.Controller controller, 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

Module

public Module(Domain domain,
              org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit,
              org.jboss.deployers.structure.spi.classloading.ClassLoaderMetaData metadata)
Create a new Module.

Parameters:
domain - the domain
deploymentUnit - the deployment unit
metadata - the metadata
Throws:
IllegalArgumentException - for a null parameter
Method Detail

getName

public String getName()
Get the name of the module

Returns:
the string

getDeploymentUnit

public org.jboss.deployers.structure.spi.DeploymentUnit getDeploymentUnit()
Get the deploymentUnit.

Returns:
the deploymentUnit.

getDomain

public Domain getDomain()
Get the domain.

Returns:
the domain.

getMetadata

public org.jboss.deployers.structure.spi.classloading.ClassLoaderMetaData getMetadata()
Get the metadata.

Returns:
the metadata.

getDomainName

public String getDomainName()
Get the domain name.

Returns:
the domain name.

getParentDomain

public String getParentDomain()
Get the parentDomain.

Returns:
the parentDomain.

getExportAll

public org.jboss.deployers.structure.spi.classloading.ExportAll getExportAll()
Get the export all for the module

Returns:
the export all

isImportAll

public boolean isImportAll()
Get the import all for the module

Returns:
the import all

getParentPolicy

public org.jboss.classloader.spi.ParentPolicy getParentPolicy()
Get delegate policy

Returns:
the delegation policy

getDelegates

public List<? extends org.jboss.classloader.spi.DelegateLoader> getDelegates()
Get the delegate loaders for this module

Returns:
the delegates

getDelegateLoader

public org.jboss.classloader.spi.DelegateLoader getDelegateLoader()
Get the delegate loader

Returns:
the delegate loader

getPackageNames

public String[] getPackageNames()

createDependencies

public void createDependencies()
Create the dependencies for the module


resolve

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

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

reset

public void reset()
Reset the module


release

public void release()
Release the module


getDynamicClassRoot

public URL getDynamicClassRoot()


Copyright ? 2007 JBoss Inc.. All Rights Reserved.