org.sakaiproject.entitybroker.util
Class AbstractEntityProvider
java.lang.Object
org.sakaiproject.entitybroker.util.AbstractEntityProvider
- All Implemented Interfaces:
- EntityProvider, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
public abstract class AbstractEntityProvider
- extends Object
- implements EntityProvider, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
WARNING: Requires Spring 1.2.8 or newer libraries in the classpath
Makes it easier to write EntityProviders in webapps
A class to extend that gets rid of some of the redundant code that has
to be written over and over, causes this provider to be registered when it
is created and unregistered when it is destroyed, also includes the
DeveloperHelperService as a protected variable,
pairs with the parent bean (org.sakaiproject.entitybroker.entityprovider.AbstractEntityProvider)
Create your spring bean like so (class is your provider, set whatever properties you are using):
- Author:
- Aaron Zeckoski (aaron@caret.cam.ac.uk)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
developerHelperService
protected DeveloperHelperService developerHelperService
AbstractEntityProvider
public AbstractEntityProvider()
setEntityProviderManager
public void setEntityProviderManager(EntityProviderManager entityProviderManager)
setDeveloperHelperService
public void setDeveloperHelperService(DeveloperHelperService developerHelperService)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
destroy
public void destroy()
throws Exception
- Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
- Throws:
Exception
Copyright © 2007-2013 CARET, University of Cambridge. All Rights Reserved.