org.hippoecm.hst.site.container
Class ResourceFactoryBean

java.lang.Object
  extended by org.hippoecm.hst.site.container.ResourceFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<Object>, org.springframework.context.ResourceLoaderAware

public class ResourceFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<Object>, org.springframework.context.ResourceLoaderAware

ResourceFactoryBean

Simple Resource Factory Bean to create URL string or FILE from resource string for convenience.

Version:
$Id$

Constructor Summary
ResourceFactoryBean(String resourcePath)
           
ResourceFactoryBean(String resourcePath, Class<?> objectType)
           
 
Method Summary
protected  Object createInstance()
           
 Object getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
           
 void setSingleton(boolean singleton)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFactoryBean

public ResourceFactoryBean(String resourcePath)

ResourceFactoryBean

public ResourceFactoryBean(String resourcePath,
                           Class<?> objectType)
Method Detail

setResourceLoader

public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Specified by:
setResourceLoader in interface org.springframework.context.ResourceLoaderAware

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<Object>
Throws:
Exception

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<Object>

setSingleton

public void setSingleton(boolean singleton)

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<Object>

createInstance

protected Object createInstance()
                         throws Exception
Throws:
Exception


Copyright © 2008-2012 Hippo. All Rights Reserved.