|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.Model
org.jboss.seam.Component
@Scope(value=APPLICATION) public class Component
Metamodel class for component classes. A Seam component is any class with a @Name annotation.
| Nested Class Summary | |
|---|---|
static interface |
Component.BijectedAttribute<T extends java.lang.annotation.Annotation>
|
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTIES
|
| Constructor Summary | |
|---|---|
Component(java.lang.Class<?> clazz)
|
|
Component(java.lang.Class<?> clazz,
Context applicationContext)
|
|
Component(java.lang.Class<?> clazz,
java.lang.String componentName)
|
|
Component(java.lang.Class<?> clazz,
java.lang.String componentName,
ScopeType componentScope,
boolean startup,
java.lang.String[] dependencies,
java.lang.String jndiName)
|
|
| Method Summary | |
|---|---|
void |
addInterceptor(Interceptor interceptor)
|
void |
addInterceptor(java.lang.Object interceptorInstance)
|
boolean |
beanClassHasAnnotation(java.lang.Class annotationType)
|
boolean |
beanClassHasAnnotation(java.lang.String annotationName)
|
boolean |
businessInterfaceHasAnnotation(java.lang.Class annotationType)
|
java.lang.Object |
callComponentMethod(java.lang.Object instance,
java.lang.reflect.Method method,
java.lang.Object... parameters)
|
void |
callCreateMethod(java.lang.Object instance)
|
void |
callDestroyMethod(java.lang.Object instance)
|
void |
callPostActivateMethod(java.lang.Object instance)
|
void |
callPostConstructMethod(java.lang.Object instance)
|
void |
callPreDestroyMethod(java.lang.Object instance)
|
void |
callPrePassivateMethod(java.lang.Object instance)
|
protected void |
checkPersistenceContextForComponentType()
|
protected void |
checkSynchronizedForComponentType()
|
static java.lang.Class<javassist.util.proxy.ProxyObject> |
createProxyFactory(ComponentType type,
java.lang.Class beanClass,
java.util.Collection<java.lang.Class> businessInterfaces)
|
java.util.List<java.lang.Object> |
createUserInterceptors(InterceptorType type)
|
void |
destroy(java.lang.Object bean)
|
void |
disinject(java.lang.Object bean)
Null out any @In attributes of a component instance. |
static Component |
forName(java.lang.String name)
|
java.util.Set<java.lang.Class> |
getBusinessInterfaces()
|
static java.util.Set<java.lang.Class> |
getBusinessInterfaces(java.lang.Class clazz)
|
java.util.List<Interceptor> |
getClientSideInterceptors()
For use with Seam debug page. |
static java.lang.String |
getComponentName(java.lang.Class<?> clazz)
|
java.lang.reflect.Method |
getCreateMethod()
|
java.lang.reflect.Method |
getDefaultRemoveMethod()
|
java.lang.String[] |
getDependencies()
|
java.lang.reflect.Method |
getDestroyMethod()
|
java.util.Collection<Namespace> |
getImports()
|
java.util.List<Component.BijectedAttribute<In>> |
getInAttributes()
|
static java.lang.Object |
getInstance(java.lang.Class<?> clazz)
|
static java.lang.Object |
getInstance(java.lang.Class<?> clazz,
boolean create)
|
static java.lang.Object |
getInstance(java.lang.Class<?> clazz,
ScopeType scope)
|
static java.lang.Object |
getInstance(java.lang.Class<?> clazz,
ScopeType scope,
boolean create)
|
static java.lang.Object |
getInstance(java.lang.String name)
|
static java.lang.Object |
getInstance(java.lang.String name,
boolean create)
|
static java.lang.Object |
getInstance(java.lang.String name,
boolean create,
boolean allowAutocreation)
|
static java.lang.Object |
getInstance(java.lang.String name,
ScopeType scope)
|
static java.lang.Object |
getInstance(java.lang.String name,
ScopeType scope,
boolean create)
|
static java.lang.Object |
getInstance(java.lang.String name,
ScopeType scope,
boolean create,
boolean allowAutocreation)
|
static java.lang.Object |
getInstanceFromFactory(java.lang.String name)
|
java.util.List<Interceptor> |
getInterceptors(InterceptorType type)
|
java.lang.String |
getName()
|
Namespace |
getNamespace()
|
java.util.List<Component.BijectedAttribute<Out>> |
getOutAttributes()
|
java.util.List<Component.BijectedAttribute> |
getPersistenceContextAttributes()
|
java.lang.reflect.Method |
getPostActivateMethod()
|
java.lang.reflect.Method |
getPostConstructMethod()
|
java.lang.reflect.Method |
getPreDestroyMethod()
|
java.lang.reflect.Method |
getPrePassivateMethod()
|
java.lang.reflect.Method |
getRemoveMethod(java.lang.String name)
|
java.util.Collection<java.lang.reflect.Method> |
getRemoveMethods()
|
ScopeType |
getScope()
|
java.util.List<Interceptor> |
getServerSideInterceptors()
For use with Seam debug page. |
long |
getTimeout()
|
ComponentType |
getType()
|
java.lang.reflect.Method |
getUnwrapMethod()
|
boolean |
hasConversationManagementMethods()
|
boolean |
hasCreateMethod()
|
boolean |
hasDefaultRemoveMethod()
|
boolean |
hasDestroyMethod()
|
boolean |
hasPostActivateMethod()
|
boolean |
hasPostConstructMethod()
|
boolean |
hasPreDestroyMethod()
|
boolean |
hasPrePassivateMethod()
|
boolean |
hasUnwrapMethod()
|
void |
initialize(java.lang.Object bean)
|
void |
inject(java.lang.Object bean,
boolean enforceRequired)
Inject context variable values into @In attributes of a component instance. |
protected java.lang.Object |
instantiate()
|
protected java.lang.Object |
instantiateEntityBean()
|
protected java.lang.Object |
instantiateJavaBean()
|
protected java.lang.Object |
instantiateSessionBean()
|
boolean |
isConversationManagementMethod(java.lang.reflect.Method method)
|
boolean |
isInstance(java.lang.Object bean)
|
boolean |
isInterceptionEnabled()
|
boolean |
isLifecycleMethod(java.lang.reflect.Method method)
|
boolean |
isPerNestedConversation()
|
boolean |
isSecure()
|
boolean |
isStartup()
|
boolean |
isSynchronize()
|
boolean |
needsInjection()
|
boolean |
needsOutjection()
|
java.lang.Object |
newInstance()
|
void |
outject(java.lang.Object bean,
boolean enforceRequired)
Outject context variable values from @Out attributes of a component instance. |
protected void |
postConstruct(java.lang.Object bean)
|
protected void |
postConstructEntityBean(java.lang.Object bean)
|
protected void |
postConstructJavaBean(java.lang.Object bean)
|
protected void |
postConstructSessionBean(java.lang.Object bean)
|
java.lang.String |
toString()
|
java.lang.Object |
wrap(java.lang.Object bean,
javassist.util.proxy.MethodHandler interceptor)
Wrap a Javassist interceptor around an instance of the component |
| Methods inherited from class org.jboss.seam.Model |
|---|
forClass, getBeanClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTIES
| Constructor Detail |
|---|
public Component(java.lang.Class<?> clazz)
public Component(java.lang.Class<?> clazz,
java.lang.String componentName)
public Component(java.lang.Class<?> clazz,
Context applicationContext)
public Component(java.lang.Class<?> clazz,
java.lang.String componentName,
ScopeType componentScope,
boolean startup,
java.lang.String[] dependencies,
java.lang.String jndiName)
| Method Detail |
|---|
protected void checkSynchronizedForComponentType()
protected void checkPersistenceContextForComponentType()
public void addInterceptor(java.lang.Object interceptorInstance)
public void addInterceptor(Interceptor interceptor)
public boolean beanClassHasAnnotation(java.lang.Class annotationType)
public boolean beanClassHasAnnotation(java.lang.String annotationName)
public boolean businessInterfaceHasAnnotation(java.lang.Class annotationType)
public java.lang.String getName()
public ComponentType getType()
public ScopeType getScope()
public java.util.List<Interceptor> getInterceptors(InterceptorType type)
public java.util.List<java.lang.Object> createUserInterceptors(InterceptorType type)
public java.util.List<Interceptor> getServerSideInterceptors()
public java.util.List<Interceptor> getClientSideInterceptors()
public java.lang.reflect.Method getDestroyMethod()
public java.util.Collection<java.lang.reflect.Method> getRemoveMethods()
public java.lang.reflect.Method getRemoveMethod(java.lang.String name)
public boolean hasPreDestroyMethod()
public boolean hasPostConstructMethod()
public boolean hasPrePassivateMethod()
public boolean hasPostActivateMethod()
public boolean hasDestroyMethod()
public boolean hasCreateMethod()
public java.lang.reflect.Method getCreateMethod()
public boolean hasUnwrapMethod()
public java.lang.reflect.Method getUnwrapMethod()
public java.util.List<Component.BijectedAttribute<Out>> getOutAttributes()
public java.util.List<Component.BijectedAttribute<In>> getInAttributes()
public boolean needsInjection()
public boolean needsOutjection()
protected java.lang.Object instantiate()
throws java.lang.Exception
java.lang.Exception
protected void postConstruct(java.lang.Object bean)
throws java.lang.Exception
java.lang.Exception
protected java.lang.Object instantiateSessionBean()
throws java.lang.Exception,
javax.naming.NamingException
java.lang.Exception
javax.naming.NamingException
protected void postConstructSessionBean(java.lang.Object bean)
throws java.lang.Exception,
javax.naming.NamingException
java.lang.Exception
javax.naming.NamingException
protected java.lang.Object instantiateEntityBean()
throws java.lang.Exception
java.lang.Exception
protected void postConstructEntityBean(java.lang.Object bean)
throws java.lang.Exception
java.lang.Exception
protected java.lang.Object instantiateJavaBean()
throws java.lang.Exception
java.lang.Exception
protected void postConstructJavaBean(java.lang.Object bean)
throws java.lang.Exception
java.lang.Exceptionpublic void destroy(java.lang.Object bean)
public java.lang.Object wrap(java.lang.Object bean,
javassist.util.proxy.MethodHandler interceptor)
throws java.lang.Exception
java.lang.Exception
public void initialize(java.lang.Object bean)
throws java.lang.Exception
java.lang.Exception
public void inject(java.lang.Object bean,
boolean enforceRequired)
bean - a Seam component instanceenforceRequired - should we enforce required=true?public void disinject(java.lang.Object bean)
bean - a Seam component instance
public void outject(java.lang.Object bean,
boolean enforceRequired)
bean - a Seam component instanceenforceRequired - should we enforce required=true?public boolean isInstance(java.lang.Object bean)
public static java.util.Set<java.lang.Class> getBusinessInterfaces(java.lang.Class clazz)
public java.util.Set<java.lang.Class> getBusinessInterfaces()
public static java.lang.String getComponentName(java.lang.Class<?> clazz)
public static Component forName(java.lang.String name)
public static java.lang.Object getInstance(java.lang.Class<?> clazz)
public static java.lang.Object getInstance(java.lang.Class<?> clazz,
boolean create)
public static java.lang.Object getInstance(java.lang.Class<?> clazz,
ScopeType scope)
public static java.lang.Object getInstance(java.lang.Class<?> clazz,
ScopeType scope,
boolean create)
public static java.lang.Object getInstance(java.lang.String name)
public static java.lang.Object getInstance(java.lang.String name,
boolean create)
public static java.lang.Object getInstance(java.lang.String name,
boolean create,
boolean allowAutocreation)
public static java.lang.Object getInstance(java.lang.String name,
ScopeType scope)
public static java.lang.Object getInstance(java.lang.String name,
ScopeType scope,
boolean create)
public static java.lang.Object getInstance(java.lang.String name,
ScopeType scope,
boolean create,
boolean allowAutocreation)
public static java.lang.Object getInstanceFromFactory(java.lang.String name)
public java.lang.Object newInstance()
public boolean hasDefaultRemoveMethod()
public java.lang.reflect.Method getDefaultRemoveMethod()
public void callCreateMethod(java.lang.Object instance)
public void callDestroyMethod(java.lang.Object instance)
public void callPreDestroyMethod(java.lang.Object instance)
public void callPostConstructMethod(java.lang.Object instance)
public void callPrePassivateMethod(java.lang.Object instance)
public void callPostActivateMethod(java.lang.Object instance)
public java.lang.reflect.Method getPostActivateMethod()
public java.lang.reflect.Method getPrePassivateMethod()
public java.lang.reflect.Method getPostConstructMethod()
public java.lang.reflect.Method getPreDestroyMethod()
public long getTimeout()
public java.lang.Object callComponentMethod(java.lang.Object instance,
java.lang.reflect.Method method,
java.lang.Object... parameters)
public java.lang.String toString()
toString in class java.lang.Object
public static java.lang.Class<javassist.util.proxy.ProxyObject> createProxyFactory(ComponentType type,
java.lang.Class beanClass,
java.util.Collection<java.lang.Class> businessInterfaces)
public boolean isInterceptionEnabled()
public boolean isStartup()
public boolean isSynchronize()
public java.lang.String[] getDependencies()
public boolean isLifecycleMethod(java.lang.reflect.Method method)
public boolean isConversationManagementMethod(java.lang.reflect.Method method)
public java.util.List<Component.BijectedAttribute> getPersistenceContextAttributes()
public java.util.Collection<Namespace> getImports()
public Namespace getNamespace()
public boolean isPerNestedConversation()
public boolean hasConversationManagementMethods()
public boolean isSecure()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||