|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.uva.vlet.vrs.Registry
public class Registry
Registry to query 'Resources' and/or services.
Uses the java Class Loader to load an implementation of a (VRS) Service. It tries to load the class and calls the initService method, which must return an instance of that class that implements that service. That object acts as Service Handler which can provide/produce Resource objects of the type VNode.
VFS
Method Summary | |
---|---|
static void |
addResourceEventListener(ResourceEventListener listener)
|
void |
clear()
The clear is similar to 'dispose' except that after the 'cleanup' execution might continue. |
static void |
clearClass()
|
void |
dispose()
Clean up resource. |
static void |
fireEvent(ResourceEvent event)
|
java.lang.String |
getDefaultScheme(java.lang.String scheme)
When more then one scheme names are allowed (for example: gftp/gsiftp) this method returns the default scheme for the gvien name. |
java.lang.String[] |
getDefaultSchemeNames()
Returns array of default scheme names for the registered protocols. |
VAttribute[] |
getDefaultServerAttributesFor(VRL loc)
|
VAttributeGroup |
getServiceAttributeGroups()
|
VRS |
getServiceForScheme(java.lang.String typestr)
Searches the type registry. |
VRS |
getServiceForScheme(java.lang.String typestr,
java.lang.String hostname)
|
VRS[] |
getServices()
Returns array of registered services |
VFS |
getVFSFor(VRL loc)
|
VRS |
getVRSFor(VRL loc)
|
static void |
init()
In the case auto class initialisation does not work, call this init method to initialize the class |
static boolean |
isLocalLocation(VRL location)
|
VNode |
openLocation(VRSContext context,
java.lang.String location)
Open location specified by the location string. |
VNode |
openLocation(VRSContext context,
java.net.URL url)
|
VNode |
openLocation(VRSContext context,
VRL location)
Registry openLocation, this is the master openLocation |
static void |
removeResourceEventListener(ResourceEventListener listener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public VFS getVFSFor(VRL loc) throws VlException
VlException
public VRS getVRSFor(VRL loc) throws VlException
VlException
public VRS getServiceForScheme(java.lang.String typestr)
typestr
-
public VRS getServiceForScheme(java.lang.String typestr, java.lang.String hostname)
public VNode openLocation(VRSContext context, java.lang.String location) throws VlException
VlException
#openLocation(VRL)
public VNode openLocation(VRSContext context, java.net.URL url) throws VlException
VlException
public VNode openLocation(VRSContext context, VRL location) throws VlException
VlException
public java.lang.String getDefaultScheme(java.lang.String scheme)
scheme
-
public VAttributeGroup getServiceAttributeGroups()
public java.lang.String[] getDefaultSchemeNames()
public VAttribute[] getDefaultServerAttributesFor(VRL loc) throws VlException
VlException
public void dispose()
public void clear()
public VRS[] getServices()
public static void fireEvent(ResourceEvent event)
public static void addResourceEventListener(ResourceEventListener listener)
public static void removeResourceEventListener(ResourceEventListener listener)
public static boolean isLocalLocation(VRL location)
public static void clearClass()
public static void init()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |