net.sf.sail.core.service.impl
Class CurnitUrlProviderImpl
java.lang.Object
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-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurnitUrlProviderImpl
public CurnitUrlProviderImpl()
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.