org.sakaiproject.entitybroker.util.spring
Class EntityProviderAutoRegistrar

java.lang.Object
  extended by 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)

Constructor Summary
protected EntityProviderAutoRegistrar()
           
  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
 
Method Summary
 void init()
           
 void setApplicationContext(org.springframework.context.ApplicationContext context)
           
 void setEntityProviderManager(EntityProviderManager entityProviderManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.