NetKernel APIs


com.ten60.netkernel.module
Class ModuleManager

java.lang.Object
  extended bycom.ten60.netkernel.urii.representation.SimpleRepresentationImpl
      extended bycom.ten60.netkernel.container.ComponentImpl
          extended bycom.ten60.netkernel.module.ModuleManager
All Implemented Interfaces:
IAspectBinaryStream, IComponent, IURAspect, IURRepresentation

public class ModuleManager
extends ComponentImpl

NetKernel system component which manages all deployed modules and their public/private address spaces


Field Summary
static String JAR_SUFFIX
           
static String MODULE_SCHEME
           
static URIdentifier URI
           
 
Fields inherited from class com.ten60.netkernel.urii.representation.SimpleRepresentationImpl
mMeta
 
Constructor Summary
ModuleManager()
           
 
Method Summary
 void completeStartup()
           
 void doPeriodicHouseKeeping()
          doPeriodicHouseKeeping method implemented with null body
 MappedRequest getAccessorForRequest(URRequest aRequest, boolean aDebug)
          Performs the resolution process for a request and optionally captures debug
 ModuleDefinition getDefaultCacheModule()
           
 URL getDeployedModulesURL(Container aContainer)
           
 IFragmentor getFragmentorFor(URRequest aRequest)
           
 ModuleDefinition getModule(URIdentifier aURI, Version aMin, Version aMax)
          Find the latest version of a module that satisfy the optional criteria
 PairList getTransports()
           
 ITransrepresentor getTransrepresentorFor(IURRepresentation aFrom, Class aTo, URRequest aRequest)
           
static void resetModuleFactory()
           
 void start(Container aContainer)
          start method implemented with null body
 void stop()
          stop method implemented with null body
 void write(OutputStream aStream)
          write method implemented with null body
 
Methods inherited from class com.ten60.netkernel.container.ComponentImpl
getEncoding, getURI
 
Methods inherited from class com.ten60.netkernel.urii.representation.SimpleRepresentationImpl
getAspect, getAspects, getMeta, hasAspect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ten60.netkernel.urii.IURRepresentation
getAspect, getAspects, getMeta, hasAspect
 

Field Detail

MODULE_SCHEME

public static final String MODULE_SCHEME
See Also:
Constant Field Values

JAR_SUFFIX

public static final String JAR_SUFFIX
See Also:
Constant Field Values

URI

public static final URIdentifier URI
Constructor Detail

ModuleManager

public ModuleManager()
Method Detail

resetModuleFactory

public static void resetModuleFactory()

start

public void start(Container aContainer)
           throws NetKernelException
Description copied from class: ComponentImpl
start method implemented with null body

Specified by:
start in interface IComponent
Overrides:
start in class ComponentImpl
Throws:
NetKernelException

stop

public void stop()
          throws NetKernelException
Description copied from class: ComponentImpl
stop method implemented with null body

Specified by:
stop in interface IComponent
Overrides:
stop in class ComponentImpl
Throws:
NetKernelException

completeStartup

public void completeStartup()

getDefaultCacheModule

public ModuleDefinition getDefaultCacheModule()

getDeployedModulesURL

public URL getDeployedModulesURL(Container aContainer)
                          throws MalformedURLException
Throws:
MalformedURLException

getModule

public ModuleDefinition getModule(URIdentifier aURI,
                                  Version aMin,
                                  Version aMax)
                           throws NetKernelException
Find the latest version of a module that satisfy the optional criteria

Throws:
NetKernelException - thrown if no match can be found

getTransports

public PairList getTransports()

getAccessorForRequest

public MappedRequest getAccessorForRequest(URRequest aRequest,
                                           boolean aDebug)
                                    throws NetKernelException
Performs the resolution process for a request and optionally captures debug

Parameters:
aRequest - the request to resolve
aDebug - true if we should capture debug trace
Returns:
a mapped request object
Throws:
NetKernelException

getTransrepresentorFor

public ITransrepresentor getTransrepresentorFor(IURRepresentation aFrom,
                                                Class aTo,
                                                URRequest aRequest)

getFragmentorFor

public IFragmentor getFragmentorFor(URRequest aRequest)

write

public void write(OutputStream aStream)
           throws IOException
Description copied from class: ComponentImpl
write method implemented with null body

Specified by:
write in interface IAspectBinaryStream
Overrides:
write in class ComponentImpl
Throws:
IOException

doPeriodicHouseKeeping

public void doPeriodicHouseKeeping()
Description copied from class: ComponentImpl
doPeriodicHouseKeeping method implemented with null body

Specified by:
doPeriodicHouseKeeping in interface IComponent
Overrides:
doPeriodicHouseKeeping in class ComponentImpl

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.