NetKernel APIs


com.ten60.netkernel.module
Class ModuleDefinition

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

public final class ModuleDefinition
extends java.lang.Object
implements IRequestorContext

In memory representation of a deployed module


Field Summary
static java.lang.String ELEMENT_ACCESSOR
           
static java.lang.String ELEMENT_IMPORT
           
static java.lang.String ELEMENT_REWRITE
           
static java.lang.String ELEMENT_SKIP
           
static java.lang.String ELEMENT_SUPER
           
static java.lang.String ELEMENT_THIS
           
static java.lang.String ELEMENT_VALIDATION_ERROR
           
static java.lang.String MODULE_CONFIG
           
 
Constructor Summary
ModuleDefinition(java.lang.String aModuleURIString, long aTimestamp, org.w3c.dom.Document aDoc, ModuleManager aModuleManager)
          Creates a new instance of ModuleDefinition
 
Method Summary
 void cleanup()
           
 void cleanupComponents()
           
 IURAccessor getAccessor(java.lang.String aClassname, Container aContainer)
           
 ICachelet getCache()
           
 ModuleClassLoader getClassLoader()
           
 java.util.List getExportedClassMatches()
           
 URIMapping getExportedURIMatches()
           
 IFragmentor getFragmentorFor(URRequest aRequest, java.util.List aLookedAtModules)
           
 java.util.List getImportedModules()
           
 java.util.List getRawClassPathElements()
          Used for dynamically building any source.
 XMLReadable getReadable()
           
 java.net.URL getResource(java.lang.String aPath)
           
 PairList getResourceExpiries()
           
 java.lang.String getScratchDir()
           
 java.lang.String getScratchDirURI()
          Guaranteed *nix/Win32 independent scratch dir URI
 java.lang.String getSourceURI()
           
 long getTimestamp()
           
 ITransrepresentor getTransrepresentorFor(IURRepresentation aFrom, java.lang.Class aTo, java.util.List aLookedAtModules)
           
 URIdentifier getURI()
           
 Version getVersion()
           
 boolean isExpanded()
           
 URIdentifier rewrite(URIdentifier aURI)
           
 java.lang.String toString()
           
 void write(java.io.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 java.lang.String ELEMENT_IMPORT
See Also:
Constant Field Values

ELEMENT_ACCESSOR

public static final java.lang.String ELEMENT_ACCESSOR
See Also:
Constant Field Values

ELEMENT_THIS

public static final java.lang.String ELEMENT_THIS
See Also:
Constant Field Values

ELEMENT_SUPER

public static final java.lang.String ELEMENT_SUPER
See Also:
Constant Field Values

ELEMENT_REWRITE

public static final java.lang.String ELEMENT_REWRITE
See Also:
Constant Field Values

ELEMENT_SKIP

public static final java.lang.String ELEMENT_SKIP
See Also:
Constant Field Values

ELEMENT_VALIDATION_ERROR

public static final java.lang.String ELEMENT_VALIDATION_ERROR
See Also:
Constant Field Values

MODULE_CONFIG

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

ModuleDefinition

public ModuleDefinition(java.lang.String aModuleURIString,
                        long aTimestamp,
                        org.w3c.dom.Document aDoc,
                        ModuleManager aModuleManager)
                 throws java.io.IOException,
                        org.xml.sax.SAXException,
                        java.net.MalformedURLException,
                        java.lang.ClassNotFoundException,
                        NetKernelException
Creates a new instance of ModuleDefinition

Throws:
java.io.IOException
org.xml.sax.SAXException
java.net.MalformedURLException
java.lang.ClassNotFoundException
NetKernelException
Method Detail

cleanup

public void cleanup()

cleanupComponents

public void cleanupComponents()

getSourceURI

public java.lang.String getSourceURI()

getCache

public ICachelet getCache()

getScratchDir

public java.lang.String getScratchDir()

getScratchDirURI

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


getResource

public java.net.URL getResource(java.lang.String aPath)

isExpanded

public boolean isExpanded()

getTimestamp

public long getTimestamp()

getReadable

public XMLReadable getReadable()

getExportedURIMatches

public URIMapping getExportedURIMatches()

getExportedClassMatches

public java.util.List getExportedClassMatches()

getRawClassPathElements

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


getImportedModules

public java.util.List getImportedModules()

getResourceExpiries

public PairList getResourceExpiries()

getClassLoader

public ModuleClassLoader getClassLoader()

getURI

public URIdentifier getURI()

getVersion

public Version getVersion()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

rewrite

public URIdentifier rewrite(URIdentifier aURI)

getAccessor

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

getTransrepresentorFor

public ITransrepresentor getTransrepresentorFor(IURRepresentation aFrom,
                                                java.lang.Class aTo,
                                                java.util.List aLookedAtModules)

getFragmentorFor

public IFragmentor getFragmentorFor(URRequest aRequest,
                                    java.util.List aLookedAtModules)

write

public void write(java.io.Writer aWriter)
           throws java.io.IOException
Throws:
java.io.IOException

NetKernel APIs


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