public class BeanLocatorImpl
extends Object
implements com.liferay.portal.kernel.bean.BeanLocator
Modifier and Type | Field and Description |
---|---|
static String |
VELOCITY_SUFFIX |
Constructor and Description |
---|
BeanLocatorImpl(ClassLoader classLoader,
org.springframework.context.ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected <T> Map<String,T> |
doLocate(Class<T> clazz)
This method ensures the calls stack is the proper length.
|
protected Object |
doLocate(String name) |
org.springframework.context.ApplicationContext |
getApplicationContext() |
ClassLoader |
getClassLoader() |
String[] |
getNames() |
Class<?> |
getType(String name) |
<T> Map<String,T> |
locate(Class<T> clazz) |
Object |
locate(String name) |
public static final String VELOCITY_SUFFIX
public BeanLocatorImpl(ClassLoader classLoader, org.springframework.context.ApplicationContext applicationContext)
public void destroy()
destroy
in interface com.liferay.portal.kernel.bean.BeanLocator
public org.springframework.context.ApplicationContext getApplicationContext()
public ClassLoader getClassLoader()
getClassLoader
in interface com.liferay.portal.kernel.bean.BeanLocator
public String[] getNames()
getNames
in interface com.liferay.portal.kernel.bean.BeanLocator
public Class<?> getType(String name)
getType
in interface com.liferay.portal.kernel.bean.BeanLocator
public <T> Map<String,T> locate(Class<T> clazz) throws com.liferay.portal.kernel.bean.BeanLocatorException
locate
in interface com.liferay.portal.kernel.bean.BeanLocator
com.liferay.portal.kernel.bean.BeanLocatorException
public Object locate(String name) throws com.liferay.portal.kernel.bean.BeanLocatorException
locate
in interface com.liferay.portal.kernel.bean.BeanLocator
com.liferay.portal.kernel.bean.BeanLocatorException
protected <T> Map<String,T> doLocate(Class<T> clazz) throws Exception
Exception
protected Object doLocate(String name) throws Exception
Exception