Package org.jboss.as.ee.component
Interface ComponentView
-
public interface ComponentViewA component view.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedReferencecreateInstance()Create the component view instance.ManagedReferencecreateInstance(Map<Object,Object> contextData)Create the component view instance using the additional context dataComponentgetComponent()Get the associated component.MethodgetMethod(String name, String descriptor)Gets a view method based on name and descriptor<T> TgetPrivateData(Class<T> clazz)Provides a mechanism to attach arbitrary data to the component viewClass<?>getProxyClass()Class<?>getViewClass()Set<Method>getViewMethods()Objectinvoke(org.jboss.invocation.InterceptorContext interceptorContext)Invoke on the component view interceptor chain.booleanisAsynchronous(Method method)
-
-
-
Method Detail
-
createInstance
ManagedReference createInstance() throws Exception
Create the component view instance.- Returns:
- the component view instance
- Throws:
Exception
-
createInstance
ManagedReference createInstance(Map<Object,Object> contextData) throws Exception
Create the component view instance using the additional context data- Parameters:
contextData- Additional context data used in the view creation- Returns:
- the component view instance
- Throws:
Exception
-
invoke
Object invoke(org.jboss.invocation.InterceptorContext interceptorContext) throws Exception
Invoke on the component view interceptor chain. TODO: fully document the semantics of this method- Parameters:
interceptorContext- The context of the invocation- Returns:
- The result of the invocation
- Throws:
Exception
-
getComponent
Component getComponent()
Get the associated component.- Returns:
- the component
-
getProxyClass
Class<?> getProxyClass()
- Returns:
- The proxy class used in the view
-
getViewClass
Class<?> getViewClass()
- Returns:
- The class of the view
-
getMethod
Method getMethod(String name, String descriptor)
Gets a view method based on name and descriptor- Parameters:
name- the method namedescriptor- The method descriptor in JVM format- Returns:
- The method that corresponds to the given name and descriptor
- Throws:
IllegalArgumentException- If the method cannot be found
-
getPrivateData
<T> T getPrivateData(Class<T> clazz)
Provides a mechanism to attach arbitrary data to the component view- Parameters:
clazz- The class of attachment- Returns:
- The data, or null if it is not present
-
isAsynchronous
boolean isAsynchronous(Method method)
-
-