org.springframework.extensions.surf.resource
Class AbstractResourceLoader

java.lang.Object
  extended by org.springframework.extensions.surf.resource.AbstractResourceLoader
All Implemented Interfaces:
ResourceLoader
Direct Known Subclasses:
AbstractCachingResourceLoader, URLResourceLoader

public abstract class AbstractResourceLoader
extends Object
implements ResourceLoader

Abstract class that developers can extend to build their own custom resource loaders.

Author:
muzquiano

Field Summary
protected  String endpointId
           
protected  String protocolId
           
 
Constructor Summary
AbstractResourceLoader(String protocolId, String endpointId)
          Instantiates a new abstract resource loader
 
Method Summary
 String getEndpointId()
          Gets the endpoint id.
 String getProtocolId()
          Gets the protocol id.
 WebFrameworkServiceRegistry getServiceRegistry()
          Gets the service registry.
 void init()
          Spring initialization method
 void setServiceRegistry(WebFrameworkServiceRegistry serviceRegistry)
          Sets the service registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.extensions.surf.resource.ResourceLoader
load
 

Field Detail

endpointId

protected String endpointId

protocolId

protected String protocolId
Constructor Detail

AbstractResourceLoader

public AbstractResourceLoader(String protocolId,
                              String endpointId)
Instantiates a new abstract resource loader

Parameters:
protocolId - the protocol id
endpointId - the endpoint id
Method Detail

setServiceRegistry

public void setServiceRegistry(WebFrameworkServiceRegistry serviceRegistry)
Sets the service registry.

Parameters:
serviceRegistry - the new service registry

getServiceRegistry

public WebFrameworkServiceRegistry getServiceRegistry()
Gets the service registry.

Returns:
the service registry

init

public void init()
Spring initialization method


getEndpointId

public String getEndpointId()
Gets the endpoint id.

Specified by:
getEndpointId in interface ResourceLoader
Returns:
the endpoint id

getProtocolId

public String getProtocolId()
Gets the protocol id.

Specified by:
getProtocolId in interface ResourceLoader
Returns:
the protocol id


Copyright © 2009 SpringSource, Inc. All Rights Reserved.