org.sakaiproject.entitybroker.util.spring
Class EntityProviderAutoRegistrar
java.lang.Object
org.sakaiproject.entitybroker.util.spring.EntityProviderAutoRegistrar
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware
public class EntityProviderAutoRegistrar
- extends Object
- implements org.springframework.context.ApplicationContextAware
Finds and registers any EntityProvider implementation which also implements
AutoRegisterEntityProvider
- Author:
- Antranig Basman (antranig@caret.cam.ac.uk), Aaron Zeckoski (aaronz@vt.edu)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityProviderAutoRegistrar
protected EntityProviderAutoRegistrar()
EntityProviderAutoRegistrar
public EntityProviderAutoRegistrar(EntityProviderManager entityProviderManager)
- Construct the auto-registrar which will search the spring app context and will register all
entity providers found in it which implement
AutoRegisterEntityProvider
- Parameters:
entityProviderManager - the entityProviderManager service which is used for registration
setEntityProviderManager
public void setEntityProviderManager(EntityProviderManager entityProviderManager)
init
public void init()
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
Copyright © 2007-2013 CARET, University of Cambridge. All Rights Reserved.