public class ViewConfiguration extends Object
Constructor and Description |
---|
ViewConfiguration(Class<?> viewClass,
ComponentConfiguration componentConfiguration,
org.jboss.msc.service.ServiceName viewServiceName,
org.jboss.invocation.proxy.ProxyFactory<?> proxyFactory)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addAsyncMethod(Method method)
Marks a method on the view as asynchronous
|
void |
addClientInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
Adds a client interceptor factory to all methods of a view
|
void |
addClientInterceptor(Method method,
org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
Adds a client interceptor to the given method
|
void |
addClientPostConstructInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
Adds a client post construct interceptor
|
void |
addClientPreDestroyInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
Adds a client pre-destroy interceptor
|
void |
addViewInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
Adds an interceptor factory to all methods of a view
|
void |
addViewInterceptor(Method method,
org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
Adds a view interceptor to the given method
|
Set<Method> |
getAsyncMethods()
Gets all async methods for the view
|
List<BindingConfiguration> |
getBindingConfigurations()
Get the binding configurations for this view.
|
List<org.jboss.invocation.InterceptorFactory> |
getClientInterceptors(Method method)
Get the client interceptors for a method.
|
List<org.jboss.invocation.InterceptorFactory> |
getClientPostConstructInterceptors()
Get the post-construct interceptors for client proxy instances.
|
List<org.jboss.invocation.InterceptorFactory> |
getClientPreDestroyInterceptors()
Get the pre-destroy interceptors for client proxy instances.
|
ComponentConfiguration |
getComponentConfiguration()
Get the component configuration for this view.
|
List<DependencyConfigurator<ViewService>> |
getDependencies() |
Map<Class<?>,Object> |
getPrivateData()
retrieves private data
|
org.jboss.invocation.proxy.ProxyFactory<?> |
getProxyFactory()
Get the client proxy factory to use to construct proxy instances.
|
Class<?> |
getViewClass()
Get the view class.
|
ViewInstanceFactory |
getViewInstanceFactory() |
List<org.jboss.invocation.InterceptorFactory> |
getViewInterceptors(Method method)
Get the view interceptors for a method.
|
org.jboss.msc.service.ServiceName |
getViewServiceName()
Get the view service name for this view.
|
Map<Method,Method> |
getViewToComponentMethodMap() |
<T> void |
putPrivateData(Class<T> type,
T data)
Attaches arbitrary private data to this view instance
|
void |
setViewInstanceFactory(ViewInstanceFactory viewInstanceFactory) |
public ViewConfiguration(Class<?> viewClass, ComponentConfiguration componentConfiguration, org.jboss.msc.service.ServiceName viewServiceName, org.jboss.invocation.proxy.ProxyFactory<?> proxyFactory)
viewClass
- the view classcomponentConfiguration
- the associated component configurationviewServiceName
- the service name of this viewproxyFactory
- the proxy factory to use to locally construct client proxy instancespublic ComponentConfiguration getComponentConfiguration()
public org.jboss.msc.service.ServiceName getViewServiceName()
public List<org.jboss.invocation.InterceptorFactory> getViewInterceptors(Method method)
method
- the method to look uppublic void addViewInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory, int priority)
interceptorFactory
- The factory to addpriority
- The interceptor orderpublic void addViewInterceptor(Method method, org.jboss.invocation.InterceptorFactory interceptorFactory, int priority)
method
- The method to addinterceptorFactory
- The interceptor factorypriority
- The prioritypublic List<org.jboss.invocation.InterceptorFactory> getClientInterceptors(Method method)
method
- the method to look uppublic void addClientInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory, int priority)
interceptorFactory
- The factory to addpriority
- The interceptor orderpublic void addClientInterceptor(Method method, org.jboss.invocation.InterceptorFactory interceptorFactory, int priority)
method
- The method to addinterceptorFactory
- The interceptor factorypriority
- The prioritypublic List<org.jboss.invocation.InterceptorFactory> getClientPostConstructInterceptors()
public void addClientPostConstructInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory, int priority)
interceptorFactory
- The interceptorpriority
- The interceptor orderpublic List<org.jboss.invocation.InterceptorFactory> getClientPreDestroyInterceptors()
public void addClientPreDestroyInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory, int priority)
interceptorFactory
- The interceptorpriority
- The interceptor orderpublic org.jboss.invocation.proxy.ProxyFactory<?> getProxyFactory()
public List<BindingConfiguration> getBindingConfigurations()
public Class<?> getViewClass()
public Set<Method> getAsyncMethods()
public void addAsyncMethod(Method method)
method
- The methodpublic ViewInstanceFactory getViewInstanceFactory()
public void setViewInstanceFactory(ViewInstanceFactory viewInstanceFactory)
viewInstanceFactory
- The instance factory that is used to create the view instancespublic <T> void putPrivateData(Class<T> type, T data)
type
- The type of datadata
- The datapublic List<DependencyConfigurator<ViewService>> getDependencies()
Copyright © 2016 JBoss by Red Hat. All rights reserved.