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 Details

    • BRIDGE

      public static final int BRIDGE
      See Also:
    • CLIENT_DISPATCHER_INTERCEPTOR_FACTORY

      public static final org.jboss.invocation.ImmediateInterceptorFactory CLIENT_DISPATCHER_INTERCEPTOR_FACTORY
  • Constructor Details

    • ViewDescription

      public ViewDescription(ComponentDescription componentDescription, String viewClassName)
      Construct a new instance.
      Parameters:
      componentDescription - the associated component description
      viewClassName - the view class name
    • ViewDescription

      public ViewDescription(ComponentDescription componentDescription, String viewClassName, boolean defaultConfiguratorRequired)
      Construct a new instance.
      Parameters:
      componentDescription - the associated component description
      viewClassName - the view class name
      defaultConfiguratorRequired -
    • ViewDescription

      public ViewDescription(ComponentDescription componentDescription, String viewClassName, boolean defaultConfiguratorRequired, String markupClassName)
  • Method Details

    • 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 class
      componentConfiguration - component config
      proxyFactory - 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 name
      viewClassLoader - The view class loader
      appclient - appclient environment
    • isSerializable

      public boolean isSerializable()
    • setSerializable

      public void setSerializable(boolean serializable)
    • isUseWriteReplace

      public boolean isUseWriteReplace()
    • setUseWriteReplace

      public void setUseWriteReplace(boolean useWriteReplace)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getMarkupClassName

      public String getMarkupClassName()
    • requiresSuperclassInProxy

      public boolean requiresSuperclassInProxy()