Class AbstractEntityProvider
- java.lang.Object
-
- org.sakaiproject.entitybroker.util.AbstractEntityProvider
-
- All Implemented Interfaces:
org.sakaiproject.entitybroker.entityprovider.EntityProvider,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
public abstract class AbstractEntityProvider extends Object implements org.sakaiproject.entitybroker.entityprovider.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 writeEntityProviders 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 theDeveloperHelperServiceas 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)
-
-
Field Summary
Fields Modifier and Type Field Description protected org.sakaiproject.entitybroker.DeveloperHelperServicedeveloperHelperService
-
Constructor Summary
Constructors Constructor Description AbstractEntityProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voiddestroy()voidsetDeveloperHelperService(org.sakaiproject.entitybroker.DeveloperHelperService developerHelperService)voidsetEntityProviderManager(org.sakaiproject.entitybroker.entityprovider.EntityProviderManager entityProviderManager)
-
-
-
Method Detail
-
setEntityProviderManager
public void setEntityProviderManager(org.sakaiproject.entitybroker.entityprovider.EntityProviderManager entityProviderManager)
-
setDeveloperHelperService
public void setDeveloperHelperService(org.sakaiproject.entitybroker.DeveloperHelperService developerHelperService)
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
-