站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.0.1 API 英文版文档

Component (JBoss Seam API Documentation) - JBoss Seam 1.0.1 API 英文版文档


org.jboss.seam
Class Component

java.lang.Object
  extended by org.jboss.seam.Component

@Scope(value=APPLICATION)
public class Component
extends Object

A Seam component is any POJO managed by Seam. A POJO is recognized as a Seam component if it has a @Name annotation

Version:
$Revision: 1.130 $
Author:
Thomas Heute, Gavin King

Field Summary
static String PROPERTIES
           
 
Constructor Summary
Component(Class<?> clazz)
           
Component(Class<?> clazz, Context applicationContext)
           
Component(Class<?> clazz, String componentName)
           
Component(Class<?> clazz, String componentName, ScopeType componentScope)
           
Component(Class<?> clazz, String componentName, ScopeType componentScope, Context applicationContext)
           
 
Method Summary
static Object callComponentMethod(Component component, Object instance, Method method)
           
static Object convertRequestParameter(Object requestParameter, Class type)
           
static Component forName(String name)
           
 Class<?> getBeanClass()
           
 Set<Class> getBusinessInterfaces()
           
 Method getCreateMethod()
           
 String[] getDependencies()
           
 Method getDestroyMethod()
           
 Set<Field> getInFields()
           
 Set<Method> getInMethods()
           
static Object getInstance(Class<?> clazz)
           
static Object getInstance(Class<?> clazz, boolean create)
           
static Object getInstance(Class<?> clazz, ScopeType scope, boolean create)
           
static Object getInstance(String name)
           
static Object getInstance(String name, boolean create)
           
static Object getInstance(String name, ScopeType scope, boolean create)
           
static Object getInstanceFromFactory(String name)
           
 InterceptionType getInterceptionType()
           
 List<Interceptor> getInterceptors()
           
 String getName()
           
 Set<Field> getOutFields()
           
 Set<Method> getOutMethods()
           
 Set<Method> getRemoveMethods()
           
static Map getRequestParameters()
           
 ScopeType getScope()
           
 ComponentType getType()
           
 Method getUnwrapMethod()
           
 Set<Method> getValidateMethods()
           
 org.hibernate.validator.ClassValidator getValidator()
           
 boolean hasCreateMethod()
           
 boolean hasDestroyMethod()
           
 boolean hasUnwrapMethod()
           
protected  Object initialize(Object bean)
           
 void inject(Object bean)
           
protected  Object instantiate()
           
 boolean isInstance(Object bean)
           
 boolean isMutable()
           
 boolean isStartup()
           
 boolean needsInjection()
           
 boolean needsOutjection()
           
 Object newInstance()
           
static Object newInstance(String name)
           
 void outject(Object bean)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTIES

public static final String PROPERTIES
See Also:
Constant Field Values
Constructor Detail

Component

public Component(Class<?> clazz)

Component

public Component(Class<?> clazz,
                 String componentName)

Component

public Component(Class<?> clazz,
                 String componentName,
                 ScopeType componentScope)

Component

public Component(Class<?> clazz,
                 Context applicationContext)

Component

public Component(Class<?> clazz,
                 String componentName,
                 ScopeType componentScope,
                 Context applicationContext)
Method Detail

getBeanClass

public Class<?> getBeanClass()

getName

public String getName()

getType

public ComponentType getType()

getScope

public ScopeType getScope()

getValidator

public org.hibernate.validator.ClassValidator getValidator()

getInterceptors

public List<Interceptor> getInterceptors()

getDestroyMethod

public Method getDestroyMethod()

getRemoveMethods

public Set<Method> getRemoveMethods()

getValidateMethods

public Set<Method> getValidateMethods()

hasDestroyMethod

public boolean hasDestroyMethod()

hasCreateMethod

public boolean hasCreateMethod()

getCreateMethod

public Method getCreateMethod()

hasUnwrapMethod

public boolean hasUnwrapMethod()

getUnwrapMethod

public Method getUnwrapMethod()

getOutFields

public Set<Field> getOutFields()

getOutMethods

public Set<Method> getOutMethods()

getInMethods

public Set<Method> getInMethods()

getInFields

public Set<Field> getInFields()

newInstance

public Object newInstance()

needsInjection

public boolean needsInjection()

needsOutjection

public boolean needsOutjection()

instantiate

protected Object instantiate()
                      throws Exception
Throws:
Exception

initialize

protected Object initialize(Object bean)
                     throws Exception
Throws:
Exception

inject

public void inject(Object bean)

getRequestParameters

public static Map getRequestParameters()

convertRequestParameter

public static Object convertRequestParameter(Object requestParameter,
                                             Class type)

outject

public void outject(Object bean)

isInstance

public boolean isInstance(Object bean)

getBusinessInterfaces

public Set<Class> getBusinessInterfaces()

forName

public static Component forName(String name)

getInstance

public static Object getInstance(Class<?> clazz)

getInstance

public static Object getInstance(Class<?> clazz,
                                 boolean create)

getInstance

public static Object getInstance(Class<?> clazz,
                                 ScopeType scope,
                                 boolean create)

getInstance

public static Object getInstance(String name)

getInstance

public static Object getInstance(String name,
                                 boolean create)

getInstance

public static Object getInstance(String name,
                                 ScopeType scope,
                                 boolean create)

getInstanceFromFactory

public static Object getInstanceFromFactory(String name)

newInstance

public static Object newInstance(String name)

callComponentMethod

public static Object callComponentMethod(Component component,
                                         Object instance,
                                         Method method)

toString

public String toString()
Overrides:
toString in class Object

getInterceptionType

public InterceptionType getInterceptionType()

isStartup

public boolean isStartup()

getDependencies

public String[] getDependencies()

isMutable

public boolean isMutable()