com.debianmirror.mirror.control
Class MirrorControlSingleton

java.lang.Object
  |
  +--com.debianmirror.mirror.control.MirrorControlSingleton

public class MirrorControlSingleton
extends java.lang.Object

The MirrorControlSingleton will make sure that there is only one instance handling all requests from the View layer.


Constructor Summary
MirrorControlSingleton()
           
 
Method Summary
static MirrorControlSingleton getInstance()
          Returns always the same instance of this class.
 MirrorFile getMirrorFile(java.net.URL uRL)
          Returns a MirrorFile associated with the uRL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MirrorControlSingleton

public MirrorControlSingleton()
Method Detail

getInstance

public static MirrorControlSingleton getInstance()

Returns always the same instance of this class.
Makes sure, that all request from the above layer are handled by the same controler instance.

Returns:
the reference to the instance.

getMirrorFile

public MirrorFile getMirrorFile(java.net.URL uRL)
Returns a MirrorFile associated with the uRL.

Parameters:
uRL - the URL to search for.
Returns:
the MirrorFile representing the given URL


Copyright © 2004, Apt-Got Group