NetKernel APIs


com.ten60.netkernel.module
Class ModuleDefinition

java.lang.Object
  extended bycom.ten60.netkernel.module.ModuleDefinition
All Implemented Interfaces:
IRequestorContext

public final class ModuleDefinition
extends Object
implements IRequestorContext

In memory representation of a deployed module


Field Summary
static String ELEMENT_ACCESSOR
           
static String ELEMENT_IMPORT
           
static String ELEMENT_REWRITE
           
static String ELEMENT_SKIP
           
static String ELEMENT_SUPER
           
static String ELEMENT_THIS
           
static String ELEMENT_VALIDATION_ERROR
           
static String MODULE_CONFIG
           
 
Constructor Summary
ModuleDefinition(String aModuleURIString, long aTimestamp, Document aDoc, ModuleManager aModuleManager)
          Creates a new instance of ModuleDefinition
 
Method Summary
 void cleanup()
           
 void cleanupComponents()
           
 IURAccessor getAccessor(String aClassname, Container aContainer)
           
 ICachelet getCache()
           
 ModuleClassLoader getClassLoader()
           
 List getExportedClassMatches()
           
 URIMapping getExportedURIMatches()
           
 IFragmentor getFragmentorFor(URRequest aRequest, List aLookedAtModules)
           
 List getImportedModules()
           
 List getRawClassPathElements()
          Used for dynamically building any source.
 XMLReadable getReadable()
           
 URL getResource(String aPath)
           
 PairList getResourceExpiries()
           
 String getScratchDir()
           
 String getScratchDirURI()
          Guaranteed *nix/Win32 independent scratch dir URI
 String getSourceURI()
           
 long getTimestamp()
           
 ITransrepresentor getTransrepresentorFor(IURRepresentation aFrom, Class aTo, List aLookedAtModules)
           
 URIdentifier getURI()
           
 Version getVersion()
           
 boolean isExpanded()
           
 URIdentifier rewrite(URIdentifier aURI)
           
 String toString()
           
 void write(Writer aWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ELEMENT_IMPORT

public static final String ELEMENT_IMPORT
See Also:
Constant Field Values

ELEMENT_ACCESSOR

public static final String ELEMENT_ACCESSOR
See Also:
Constant Field Values

ELEMENT_THIS

public static final String ELEMENT_THIS
See Also:
Constant Field Values

ELEMENT_SUPER

public static final String ELEMENT_SUPER
See Also:
Constant Field Values

ELEMENT_REWRITE

public static final String ELEMENT_REWRITE
See Also:
Constant Field Values

ELEMENT_SKIP

public static final String ELEMENT_SKIP
See Also:
Constant Field Values

ELEMENT_VALIDATION_ERROR

public static final String ELEMENT_VALIDATION_ERROR
See Also:
Constant Field Values

MODULE_CONFIG

public static final String MODULE_CONFIG
See Also:
Constant Field Values
Constructor Detail

ModuleDefinition

public ModuleDefinition(String aModuleURIString,
                        long aTimestamp,
                        Document aDoc,
                        ModuleManager aModuleManager)
                 throws IOException,
                        SAXException,
                        MalformedURLException,
                        ClassNotFoundException,
                        NetKernelException
Creates a new instance of ModuleDefinition

Method Detail

cleanup

public void cleanup()

cleanupComponents

public void cleanupComponents()

getSourceURI

public String getSourceURI()

getCache

public ICachelet getCache()

getScratchDir

public String getScratchDir()

getScratchDirURI

public String getScratchDirURI()
Guaranteed *nix/Win32 independent scratch dir URI


getResource

public URL getResource(String aPath)

isExpanded

public boolean isExpanded()

getTimestamp

public long getTimestamp()

getReadable

public XMLReadable getReadable()

getExportedURIMatches

public URIMapping getExportedURIMatches()

getExportedClassMatches

public List getExportedClassMatches()

getRawClassPathElements

public List getRawClassPathElements()
Used for dynamically building any source. This method returns a list of URLs


getImportedModules

public List getImportedModules()

getResourceExpiries

public PairList getResourceExpiries()

getClassLoader

public ModuleClassLoader getClassLoader()

getURI

public URIdentifier getURI()

getVersion

public Version getVersion()

toString

public String toString()

rewrite

public URIdentifier rewrite(URIdentifier aURI)

getAccessor

public IURAccessor getAccessor(String aClassname,
                               Container aContainer)
                        throws NetKernelException
Throws:
NetKernelException

getTransrepresentorFor

public ITransrepresentor getTransrepresentorFor(IURRepresentation aFrom,
                                                Class aTo,
                                                List aLookedAtModules)

getFragmentorFor

public IFragmentor getFragmentorFor(URRequest aRequest,
                                    List aLookedAtModules)

write

public void write(Writer aWriter)
           throws IOException
Throws:
IOException

NetKernel APIs


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