Class ViewDescription

    • Field Detail

      • 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 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 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 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)
      • hashCode

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

        public String getMarkupClassName()
      • requiresSuperclassInProxy

        public boolean requiresSuperclassInProxy()