net.sf.sail.core.service.impl
Class CurnitUrlProviderImpl

java.lang.Object
  extended by net.sf.sail.core.service.impl.CurnitUrlProviderImpl
All Implemented Interfaces:
Bundle, ContextUrlAware, ICurnitProvider

public class CurnitUrlProviderImpl
extends java.lang.Object
implements Bundle, ICurnitProvider, ContextUrlAware

Author:
scott AUDIT07-

Constructor Summary
CurnitUrlProviderImpl()
           
 
Method Summary
 ICurnit getCurnit(CurnitUuid curnitId)
           
protected  ICurnitProvider getProvider()
           
 java.util.Collection<CurnitUuid> getRegisteredCurnitUuids()
           
 java.lang.String getUrl()
           
 void initializeBundle(ServiceContext serviceContext)
          This method used to create the UrlCurnitProvider, but that call actually loaded in the curnit, which could be slow or could have an IOException, so now that is delayed until the provider is actually needed.
 void registerServices(ServiceContext serviceContext)
          Allows bundle to provide all the services that it has This method has to be called before initializeBundle
 void setContextUrl(java.net.URL url)
           
 void setUrl(java.lang.String urlStr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurnitUrlProviderImpl

public CurnitUrlProviderImpl()
Method Detail

initializeBundle

public void initializeBundle(ServiceContext serviceContext)
This method used to create the UrlCurnitProvider, but that call actually loaded in the curnit, which could be slow or could have an IOException, so now that is delayed until the provider is actually needed.

Specified by:
initializeBundle in interface Bundle

getProvider

protected ICurnitProvider getProvider()

registerServices

public void registerServices(ServiceContext serviceContext)
Description copied from interface: Bundle
Allows bundle to provide all the services that it has This method has to be called before initializeBundle

Specified by:
registerServices in interface Bundle

getCurnit

public ICurnit getCurnit(CurnitUuid curnitId)
Specified by:
getCurnit in interface ICurnitProvider
Parameters:
curnitId - id that uniquely identifies the curnit
Returns:
Curnit that has the curnitId

getRegisteredCurnitUuids

public java.util.Collection<CurnitUuid> getRegisteredCurnitUuids()
Specified by:
getRegisteredCurnitUuids in interface ICurnitProvider
Returns:
available curnit for the current session

getUrl

public java.lang.String getUrl()

setUrl

public void setUrl(java.lang.String urlStr)

setContextUrl

public void setContextUrl(java.net.URL url)
Specified by:
setContextUrl in interface ContextUrlAware


Copyright © 2004-2008 TELS Center. All Rights Reserved.