org.apache.webbeans.config
Class ManagedBeanConfigurator

java.lang.Object
  extended by org.apache.webbeans.config.ManagedBeanConfigurator

public final class ManagedBeanConfigurator
extends Object

Configures Simple WebBeans Component.

Contains useful static methods for creating Simple WebBeans Components.

Version:
$Rev: 952905 $ $Date: 2010-06-09 07:10:59 +0200 (Mi, 09 Jun 2010) $

Method Summary
static void checkManagedBeanCondition(Class<?> clazz)
          Checks the implementation class for checking conditions.
static
<T> ManagedBean<T>
define(Class<T> clazz, WebBeansType type)
          Deprecated.  
static boolean isManagedBean(Class<?> clazz)
          Returns true if this class can be candidate for simple web bean, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkManagedBeanCondition

public static void checkManagedBeanCondition(Class<?> clazz)
                                      throws WebBeansConfigurationException
Checks the implementation class for checking conditions.

Parameters:
clazz - implementation class
Throws:
WebBeansConfigurationException - if any configuration exception occurs

isManagedBean

public static boolean isManagedBean(Class<?> clazz)
                             throws WebBeansConfigurationException
Returns true if this class can be candidate for simple web bean, false otherwise.

Parameters:
clazz - implementation class
Returns:
true if this class can be candidate for simple web bean
Throws:
WebBeansConfigurationException - if any configuration exception occurs

define

public static <T> ManagedBean<T> define(Class<T> clazz,
                                        WebBeansType type)
                             throws WebBeansConfigurationException
Deprecated. 

Returns the newly created Simple WebBean Component.

Parameters:
clazz - Simple WebBean Component implementation class
Returns:
the newly created Simple WebBean Component
Throws:
WebBeansConfigurationException - if any configuration exception occurs


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.