org.abstracthorizon.extend.server.deployment.support
Class JarModuleLoader

java.lang.Object
  extended by org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader
      extended by org.abstracthorizon.extend.server.deployment.support.JarModuleLoader
All Implemented Interfaces:
ModuleLoader

public class JarModuleLoader
extends AbstractServiceModuleLoader

Module loader that loads one jar only

Author:
Daniel Sendula

Field Summary
 
Fields inherited from class org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader
deploymentManager, extensions
 
Constructor Summary
JarModuleLoader()
           
 
Method Summary
 Module load(URI uri)
          Loads Jar as a module
 Module loadAs(URI uri, ModuleId moduleId)
          Loads Jar as a module
 ModuleId toModuleId(URI uri)
          Translates URI to moduleId
 
Methods inherited from class org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader
canLoad, getDeploymentManager, getExtensions, setDeploymentManager, setExtensions, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarModuleLoader

public JarModuleLoader()
Method Detail

toModuleId

public ModuleId toModuleId(URI uri)
Translates URI to moduleId

Parameters:
uri - uri
Returns:
module id or null

load

public Module load(URI uri)
Loads Jar as a module

Parameters:
uri - jar's URI
Returns:
module

loadAs

public Module loadAs(URI uri,
                     ModuleId moduleId)
Loads Jar as a module

Parameters:
uri - jar's URI
moduleId - module id to be used while creating module
Returns:
module


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.