Class BeanLocatorImpl

Object
com.liferay.portal.bean.BeanLocatorImpl
All Implemented Interfaces:
com.liferay.portal.kernel.bean.BeanLocator

public class BeanLocatorImpl extends Object implements com.liferay.portal.kernel.bean.BeanLocator
Author:
Brian Wing Shun Chan, Miguel Pastor
  • Field Details

  • Constructor Details

    • BeanLocatorImpl

      public BeanLocatorImpl(ClassLoader classLoader, org.springframework.context.ApplicationContext applicationContext)
  • Method Details

    • destroy

      public void destroy()
      Specified by:
      destroy in interface com.liferay.portal.kernel.bean.BeanLocator
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext()
    • getClassLoader

      public ClassLoader getClassLoader()
      Specified by:
      getClassLoader in interface com.liferay.portal.kernel.bean.BeanLocator
    • getNames

      public String[] getNames()
      Specified by:
      getNames in interface com.liferay.portal.kernel.bean.BeanLocator
    • getType

      public Class<?> getType(String name)
      Specified by:
      getType in interface com.liferay.portal.kernel.bean.BeanLocator
    • locate

      public <T> Map<String,T> locate(Class<T> clazz) throws com.liferay.portal.kernel.bean.BeanLocatorException
      Specified by:
      locate in interface com.liferay.portal.kernel.bean.BeanLocator
      Throws:
      com.liferay.portal.kernel.bean.BeanLocatorException
    • locate

      public Object locate(String name) throws com.liferay.portal.kernel.bean.BeanLocatorException
      Specified by:
      locate in interface com.liferay.portal.kernel.bean.BeanLocator
      Throws:
      com.liferay.portal.kernel.bean.BeanLocatorException
    • doLocate

      protected <T> Map<String,T> doLocate(Class<T> clazz) throws Exception
      This method ensures the calls stack is the proper length.
      Throws:
      Exception
    • doLocate

      protected Object doLocate(String name) throws Exception
      Throws:
      Exception