org.jboss.kernel.plugins.lazy
Class AbstractLazyInitializer

java.lang.Object
  extended by org.jboss.kernel.plugins.lazy.AbstractLazyInitializer
All Implemented Interfaces:
LazyInitializer
Direct Known Subclasses:
JavassistLazyInitializer, JDKLazyInitializer

public abstract class AbstractLazyInitializer
extends Object
implements LazyInitializer

Abstract lazy initializer.

Author:
Ales Justin

Nested Class Summary
protected  class AbstractLazyInitializer.AbstractInvokeHandler
          Abstract invoke handler.
 
Constructor Summary
AbstractLazyInitializer()
           
 
Method Summary
protected  org.jboss.beans.info.spi.BeanInfo getBeanInfo(Kernel kernel, String bean)
          Get bean info.
protected static Class[] getClasses(KernelConfigurator configurator, Set<String> classNames, ClassLoader cl)
          Get classes from class names.
protected  KernelControllerContext getKernelControllerContext(Kernel kernel, String bean)
          Get kernel controller context.
protected static String getLowerPropertyName(String name)
          Get lower property name.
protected static boolean isGetter(Method minfo)
          Is getter.
protected static boolean isSetter(Method minfo)
          Is setter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.kernel.spi.lazy.LazyInitializer
initializeProxy
 

Constructor Detail

AbstractLazyInitializer

public AbstractLazyInitializer()
Method Detail

isGetter

protected static boolean isGetter(Method minfo)
Is getter.

Parameters:
minfo - method
Returns:
true if metod is getter

isSetter

protected static boolean isSetter(Method minfo)
Is setter.

Parameters:
minfo - method
Returns:
true if method is setter

getLowerPropertyName

protected static String getLowerPropertyName(String name)
Get lower property name.

Parameters:
name - the name
Returns:
lower case property name

getKernelControllerContext

protected KernelControllerContext getKernelControllerContext(Kernel kernel,
                                                             String bean)
Get kernel controller context.

Parameters:
kernel - the kernel
bean - bean name
Returns:
kernel controller context
Throws:
IllegalArgumentException - if context not found or not KernelControllerContext

getBeanInfo

protected org.jboss.beans.info.spi.BeanInfo getBeanInfo(Kernel kernel,
                                                        String bean)
Get bean info.

Parameters:
kernel - the kernel
bean - the bean name
Returns:
bean info instance

getClasses

protected static Class[] getClasses(KernelConfigurator configurator,
                                    Set<String> classNames,
                                    ClassLoader cl)
                             throws Throwable
Get classes from class names.

Parameters:
configurator - the configurator
classNames - the class names
cl - classloader
Returns:
array of classes
Throws:
Throwable - for any error


Copyright ? 2007 JBoss Inc.. All Rights Reserved.