com.voidsearch.voidbase.core
Class VoidBaseResourceRegister

java.lang.Object
  extended by com.voidsearch.voidbase.core.VoidBaseResourceRegister

public class VoidBaseResourceRegister
extends java.lang.Object

Register of Module -> uri mappings


Method Summary
 VoidBaseModule getHandler(java.lang.String uri)
           
 VoidBaseModule getHandlerBlocking(java.lang.String uri)
          blocks on call indefinitely until handler register
 VoidBaseModule getHandlerBlocking(java.lang.String uri, long timeout)
          blocks on call until handler register throws HandlerNotRegisteredException if timeout period expired
static VoidBaseResourceRegister getInstance()
           
 void register(java.lang.String uri, VoidBaseModule module)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static VoidBaseResourceRegister getInstance()

register

public void register(java.lang.String uri,
                     VoidBaseModule module)
              throws ResourceAlreadyRegisteredException
Throws:
ResourceAlreadyRegisteredException

getHandler

public VoidBaseModule getHandler(java.lang.String uri)
                          throws HandlerNotRegisteredException
Throws:
HandlerNotRegisteredException

getHandlerBlocking

public VoidBaseModule getHandlerBlocking(java.lang.String uri)
blocks on call indefinitely until handler register

Parameters:
uri -
Returns:

getHandlerBlocking

public VoidBaseModule getHandlerBlocking(java.lang.String uri,
                                         long timeout)
                                  throws HandlerNotRegisteredException
blocks on call until handler register throws HandlerNotRegisteredException if timeout period expired

Parameters:
uri -
Returns:
Throws:
HandlerNotRegisteredException


Copyright © 2009. All Rights Reserved.