Package org.jboss.as.ee.component
Interface ComponentView
public interface ComponentView
A component view.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptionCreate the component view instance.createInstance(Map<Object, Object> contextData) Create the component view instance using the additional context dataGet the associated component.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<?>Class<?>invoke(org.jboss.invocation.InterceptorContext interceptorContext) Invoke on the component view interceptor chain.booleanisAsynchronous(Method method)
-
Method Details
-
createInstance
Create the component view instance.- Returns:
- the component view instance
- Throws:
Exception
-
createInstance
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
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
-
getViewMethods
- Returns:
- All methods that the view supports
-
getMethod
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
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
-