com.togethersoft.openapi.vcs
Class VcsProviderHelper


public class VcsProviderHelper

Helper class to facilitate registering of newly created instances of VcsProvider.
Basically a Hashtable storing VcsProvider instances basing on its reference and ID.
This class is singleton. No one is allowed to create instances of it.

Author:
TogetherSoft
Since: Together 4.0
Stereotype singleton

Field Summary
 private static VcsProviderHelperMyInstance
           
 private HashtablemyProviders
           

Constructor Summary
 private VcsProviderHelper()
           

Method Summary
 static VcsProviderHelpergetInstance()
          Returns instance of VcsProviderHelper.
 booleanisProviderRegistered(VcsProvider provider)
          Returns true if particular instance of VcsProvider is registered.
 Enumerationproviders()
          Returns an Enumeration instance of all the VcsProvider registered instances.
 voidregisterProvider(VcsProvider provider)
          Register an instance of VcsProvider.
 voidunRegisterAllProviders(String ID)
          Unregister all instances of VcsProvider with specified ID.
 voidunRegisterProvider(VcsProvider provider)
          Unregister an instance of VcsProvider.

Field Detail

MyInstance

private static VcsProviderHelper MyInstance

myProviders

private Hashtable myProviders
Constructor Detail

VcsProviderHelper

private VcsProviderHelper()
Method Detail

getInstance

public static VcsProviderHelper getInstance()
Returns instance of VcsProviderHelper.

isProviderRegistered

public boolean isProviderRegistered(VcsProvider provider)
Returns true if particular instance of VcsProvider is registered.

providers

public Enumeration providers()
Returns an Enumeration instance of all the VcsProvider registered instances.
Parameters:
Enumeration of all the VcsProvider registered instances
Stereotype new

registerProvider

public void registerProvider(VcsProvider provider)
Register an instance of VcsProvider. Further calls to
isProviderRegistered will return true for this instance.
Parameters:
provider VcsProvider instance to be registered

unRegisterAllProviders

public void unRegisterAllProviders(String ID)
Unregister all instances of VcsProvider with specified ID.
Also calls VcsProvider.free () of each unregistered provider.
Parameters:
ID the ID of VcsProvider to be unregistered

unRegisterProvider

public void unRegisterProvider(VcsProvider provider)
Unregister an instance of VcsProvider. Further calls to
isProviderRegistered will return false for this instance.
Parameters:
provider instance of VcsProvider to be unregistered

Association Links

to Class com.togethersoft.openapi.vcs.VcsProviderHelper

to Class java.util.Hashtable