com.thaiopensource.util
Class Service

java.lang.Object
  extended by com.thaiopensource.util.Service

public class Service
extends Object


Nested Class Summary
private static class Service.Loader
           
private static class Service.Loader2
           
private  class Service.ProviderEnumeration
           
private static class Service.Singleton
           
 
Field Summary
private  Enumeration classNames
           
private  Enumeration configFiles
           
private static int IN_COMMENT
           
private static int IN_NAME
           
private  Service.Loader loader
           
private  Vector providers
           
private  Class serviceClass
           
private static int START
           
 
Constructor Summary
Service(Class cls)
           
 
Method Summary
 Enumeration getProviders()
           
static void main(String[] args)
           
private  boolean moreProviders()
           
private static Enumeration parseConfigFile(URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceClass

private final Class serviceClass

configFiles

private final Enumeration configFiles

classNames

private Enumeration classNames

providers

private final Vector providers

loader

private Service.Loader loader

START

private static final int START
See Also:
Constant Field Values

IN_NAME

private static final int IN_NAME
See Also:
Constant Field Values

IN_COMMENT

private static final int IN_COMMENT
See Also:
Constant Field Values
Constructor Detail

Service

public Service(Class cls)
Method Detail

getProviders

public Enumeration getProviders()

moreProviders

private boolean moreProviders()

parseConfigFile

private static Enumeration parseConfigFile(URL url)

main

public static void main(String[] args)
                 throws ClassNotFoundException
Throws:
ClassNotFoundException