|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.voytechs.jnetstream.protocol.ClasspathProtocolLoader
public class ClasspathProtocolLoader
| Field Summary | |
|---|---|
static java.lang.String |
PROTOCOL_DIR
|
| Fields inherited from interface com.slytechs.jnetstream.protocol.ProtocolLoader |
|---|
PROPERTY_JAVA_CLASS_PATH, PROPERTY_NPL_PROTOCOL_PATH |
| Constructor Summary | |
|---|---|
ClasspathProtocolLoader()
|
|
ClasspathProtocolLoader(ProtocolLoader parent,
ProtocolRegistry registry)
|
|
| Method Summary | |
|---|---|
Protocol |
findLoadedProtocol(java.lang.String name)
Will search only in the list of protocols that have been already defined in the ProtocolRegistry. |
Protocol |
findProtocol(java.lang.String name)
Will search in the list of protocols that have been already defined in the ProtocolRegistry and in other places as defined by the implementation of this interface. |
ProtocolLoader |
getParent()
Returns the parent ProtocolLoader. |
java.net.URL |
getResource(java.lang.String name)
Method that returns a URL for the requested named resource. |
java.io.InputStream |
getResourceAsStream(java.lang.String name)
Opens up an InputStream to the resource if found. |
Protocol |
linkProtocol(java.lang.String name)
Links the named protocol into the runtime environment. |
Protocol |
loadProtocol(java.io.InputStream in,
java.net.URL url)
Loads a protocol definition from a user supplied stream. |
Protocol |
loadProtocol(java.lang.String name)
Loads either the binary protocol file or invokes the compiler to compile the source protocol definition to binary form and loads it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROTOCOL_DIR
| Constructor Detail |
|---|
public ClasspathProtocolLoader()
public ClasspathProtocolLoader(ProtocolLoader parent,
ProtocolRegistry registry)
| Method Detail |
|---|
public Protocol findProtocol(java.lang.String name)
throws ProtocolNotFoundException
ProtocolLoaderWill search in the list of protocols that have been already defined in the ProtocolRegistry and in other places as defined by the implementation of this interface.
findProtocol in interface ProtocolLoadername - name of the protocol to locate
ProtocolNotFoundException
public Protocol loadProtocol(java.lang.String name)
throws ProtocolDeclarationException,
ProtocolNotFoundException,
java.io.IOException
ProtocolLoader
loadProtocol in interface ProtocolLoadername - name of the protocol to load
ProtocolDeclarationException - if the protocol binary or source files contain some kind of
delaration or syntax errors
ProtocolNotFoundException - if the protocol binary and source files can not be found
java.io.IOException - any problems with physically accessing the files
public Protocol linkProtocol(java.lang.String name)
throws ProtocolFormatException,
ProtocolNotFoundException,
ProtocolDeclarationException,
java.io.IOException,
ProtocolBindingException
ProtocolLoader
linkProtocol in interface ProtocolLoadername - name of the protocol to link
ProtocolNotFoundException - if the protocol binary and source files can not be found
ProtocolDeclarationException - if the protocol binary or source files contain some kind of
delaration or syntax errors
java.io.IOException - any problems with physically accessing the files
ProtocolBindingException - Any problems during the linking process. Uresolved references, etc..
ProtocolFormatExceptionpublic ProtocolLoader getParent()
ProtocolLoader
getParent in interface ProtocolLoaderpublic java.net.URL getResource(java.lang.String name)
ProtocolLoader
getResource in interface ProtocolLoadername - name of the resource (protocol declaration, image, or anything else to search for.)
public java.io.InputStream getResourceAsStream(java.lang.String name)
ProtocolLoader
getResourceAsStream in interface ProtocolLoadername - name of the resource to open
public Protocol findLoadedProtocol(java.lang.String name)
ProtocolLoaderWill search only in the list of protocols that have been already defined in the ProtocolRegistry. Will not perform an extensive search for the protocol.
findLoadedProtocol in interface ProtocolLoadername - name of the protocol to locate
public Protocol loadProtocol(java.io.InputStream in,
java.net.URL url)
throws ProtocolDeclarationException
loadProtocol in interface ProtocolLoaderprotocolNplDef -
ProtocolDeclarationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||