org.jasig.portal.spring.locator
Class AbstractBeanLocator<T>

java.lang.Object
  extended by org.jasig.portal.spring.locator.AbstractBeanLocator<T>
All Implemented Interfaces:
DisposableBean, InitializingBean
Direct Known Subclasses:
CacheFactoryLocator, CarResourcesLocator, ChannelPublishingServiceLocator, ChannelRegistryStoreLocator, ChannelRequestParameterManagerLocator, ConfigurationLoaderLocator, CounterStoreLocator, DbLoaderLocator, EntityCachingServiceLocator, JndiManagerLocator, JpaInterceptorLocator, OptionalContainerServicesLocator, PasswordEncryptionServiceLocator, PersonAttributeDaoLocator, PersonManagerLocator, PortalDbLocator, PortalDbMetadataLocator, PortalRenderingPipelineLocator, PortletDefinitionRegistryLocator, RequestParameterProcessorControllerLocator, ThrowableToElementLocator, UserIdentityStoreLocator, UserInstanceManagerLocator, XalanAuthorizationHelperLocator, XalanGroupMembershipHelperLocator

public abstract class AbstractBeanLocator<T>
extends Object
implements DisposableBean, InitializingBean

Provides base functionality for a static reference bean locator. Used by legacy code that is not managed within spring, avoids direct use of PortalApplicationContextLocator by client code and in the case of an already created ApplicationConext uses the bean refernce injected by the context.

Version:
$Revision: 19776 $
Author:
Eric Dalquist

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
AbstractBeanLocator(T instance, Class<T> type)
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 T getInstance()
           
protected abstract  AbstractBeanLocator<T> getLocator()
           
protected abstract  void setLocator(AbstractBeanLocator<T> locator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

AbstractBeanLocator

public AbstractBeanLocator(T instance,
                           Class<T> type)
Method Detail

setLocator

protected abstract void setLocator(AbstractBeanLocator<T> locator)

getLocator

protected abstract AbstractBeanLocator<T> getLocator()

getInstance

public final T getInstance()

afterPropertiesSet

public final void afterPropertiesSet()
                              throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

destroy

public final void destroy()
                   throws Exception
Specified by:
destroy in interface DisposableBean
Throws:
Exception


Copyright © 2010 Jasig. All Rights Reserved.