Liferay 6.2-ce-ga5

com.liferay.portal.bean
Class BeanLocatorImpl

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

public class BeanLocatorImpl
extends Object
implements BeanLocator


Nested Class Summary
static interface BeanLocatorImpl.PACL
           
 
Field Summary
static String VELOCITY_SUFFIX
           
 
Constructor Summary
BeanLocatorImpl(ClassLoader classLoader, org.springframework.context.ApplicationContext applicationContext)
           
 
Method Summary
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)
           
 void setPACLServletContextName(String paclServletContextName)
           
 
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 String VELOCITY_SUFFIX
See Also:
Constant Field Values
Constructor Detail

BeanLocatorImpl

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

getApplicationContext

public org.springframework.context.ApplicationContext getApplicationContext()

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in interface BeanLocator

getNames

public String[] getNames()
Specified by:
getNames in interface BeanLocator

getType

public Class<?> getType(String name)
Specified by:
getType in interface BeanLocator

locate

public <T> Map<String,T> locate(Class<T> clazz)
                     throws BeanLocatorException
Specified by:
locate in interface BeanLocator
Throws:
BeanLocatorException

locate

public Object locate(String name)
              throws BeanLocatorException
Specified by:
locate in interface BeanLocator
Throws:
BeanLocatorException

setPACLServletContextName

public void setPACLServletContextName(String paclServletContextName)

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

Liferay 6.2-ce-ga5