com.liferay.portal.bean
Class BeanLocatorImpl

java.lang.Object
  extended by com.liferay.portal.bean.BeanLocatorImpl
All Implemented Interfaces:
com.liferay.portal.kernel.bean.BeanLocator

public class BeanLocatorImpl
extends java.lang.Object
implements com.liferay.portal.kernel.bean.BeanLocator

Author:
Brian Wing Shun Chan

Field Summary
static java.lang.String VELOCITY_SUFFIX
           
 
Constructor Summary
BeanLocatorImpl(java.lang.ClassLoader classLoader, org.springframework.context.ApplicationContext applicationContext)
           
 
Method Summary
protected  java.lang.Object doLocate(java.lang.String name)
           
 org.springframework.context.ApplicationContext getApplicationContext()
           
 java.lang.ClassLoader getClassLoader()
           
 java.lang.String[] getNames()
           
 java.lang.Class<?> getType(java.lang.String name)
           
 java.lang.Object locate(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VELOCITY_SUFFIX

public static final java.lang.String VELOCITY_SUFFIX
See Also:
Constant Field Values
Constructor Detail

BeanLocatorImpl

public BeanLocatorImpl(java.lang.ClassLoader classLoader,
                       org.springframework.context.ApplicationContext applicationContext)
Method Detail

getApplicationContext

public org.springframework.context.ApplicationContext getApplicationContext()

getClassLoader

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

getNames

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

getType

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

locate

public java.lang.Object locate(java.lang.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 java.lang.Object doLocate(java.lang.String name)
                             throws java.lang.Exception
Throws:
java.lang.Exception