Package org.jboss.as.ee.component
Class ViewDescription
- java.lang.Object
-
- org.jboss.as.ee.component.ViewDescription
-
public class ViewDescription extends Object
A description of a view.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description static int
BRIDGE
static org.jboss.invocation.ImmediateInterceptorFactory
CLIENT_DISPATCHER_INTERCEPTOR_FACTORY
-
Constructor Summary
Constructors Constructor Description ViewDescription(ComponentDescription componentDescription, String viewClassName)
Construct a new instance.ViewDescription(ComponentDescription componentDescription, String viewClassName, boolean defaultConfiguratorRequired)
Construct a new instance.ViewDescription(ComponentDescription componentDescription, String viewClassName, boolean defaultConfiguratorRequired, String markupClassName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InjectionSource
createInjectionSource(org.jboss.msc.service.ServiceName serviceName, Supplier<ClassLoader> viewClassLoader, boolean appclient)
Create the injection sourceViewConfiguration
createViewConfiguration(Class<?> viewClass, ComponentConfiguration componentConfiguration, org.jboss.invocation.proxy.ProxyFactory<?> proxyFactory)
Creates view configuration.boolean
equals(Object o)
Set<String>
getBindingNames()
Get the set of binding names for this view.ComponentDescription
getComponentDescription()
Get the associated component description.Deque<ViewConfigurator>
getConfigurators()
Get the configurators for this view.String
getMarkupClassName()
org.jboss.msc.service.ServiceName
getServiceName()
Get the service name for this view.String
getViewClassName()
Get the view's class name.List<String>
getViewNameParts()
Get the strings to append to the view base name.int
hashCode()
boolean
isSerializable()
boolean
isUseWriteReplace()
boolean
requiresSuperclassInProxy()
void
setSerializable(boolean serializable)
void
setUseWriteReplace(boolean useWriteReplace)
String
toString()
-
-
-
Field Detail
-
BRIDGE
public static final int BRIDGE
- See Also:
- Constant Field Values
-
CLIENT_DISPATCHER_INTERCEPTOR_FACTORY
public static final org.jboss.invocation.ImmediateInterceptorFactory CLIENT_DISPATCHER_INTERCEPTOR_FACTORY
-
-
Constructor Detail
-
ViewDescription
public ViewDescription(ComponentDescription componentDescription, String viewClassName)
Construct a new instance.- Parameters:
componentDescription
- the associated component descriptionviewClassName
- the view class name
-
ViewDescription
public ViewDescription(ComponentDescription componentDescription, String viewClassName, boolean defaultConfiguratorRequired)
Construct a new instance.- Parameters:
componentDescription
- the associated component descriptionviewClassName
- the view class namedefaultConfiguratorRequired
-
-
ViewDescription
public ViewDescription(ComponentDescription componentDescription, String viewClassName, boolean defaultConfiguratorRequired, String markupClassName)
-
-
Method Detail
-
getViewClassName
public String getViewClassName()
Get the view's class name.- Returns:
- the class name
-
getComponentDescription
public ComponentDescription getComponentDescription()
Get the associated component description.- Returns:
- the component description
-
getViewNameParts
public List<String> getViewNameParts()
Get the strings to append to the view base name. The view base name is the component base name followed by"VIEW"
followed by these strings.- Returns:
- the list of strings
-
getServiceName
public org.jboss.msc.service.ServiceName getServiceName()
Get the service name for this view.- Returns:
- the service name
-
createViewConfiguration
public ViewConfiguration createViewConfiguration(Class<?> viewClass, ComponentConfiguration componentConfiguration, org.jboss.invocation.proxy.ProxyFactory<?> proxyFactory)
Creates view configuration. Allows for extensibility in EE sub components.- Parameters:
viewClass
- view classcomponentConfiguration
- component configproxyFactory
- proxy factory- Returns:
- new view configuration
-
getBindingNames
public Set<String> getBindingNames()
Get the set of binding names for this view.- Returns:
- the set of binding names
-
getConfigurators
public Deque<ViewConfigurator> getConfigurators()
Get the configurators for this view.- Returns:
- the configurators
-
createInjectionSource
protected InjectionSource createInjectionSource(org.jboss.msc.service.ServiceName serviceName, Supplier<ClassLoader> viewClassLoader, boolean appclient)
Create the injection source- Parameters:
serviceName
- The view service nameviewClassLoader
- The view class loaderappclient
- appclient environment
-
isSerializable
public boolean isSerializable()
-
setSerializable
public void setSerializable(boolean serializable)
-
isUseWriteReplace
public boolean isUseWriteReplace()
-
setUseWriteReplace
public void setUseWriteReplace(boolean useWriteReplace)
-
getMarkupClassName
public String getMarkupClassName()
-
requiresSuperclassInProxy
public boolean requiresSuperclassInProxy()
-
-