Package org.jboss.as.ee.component
Class ViewDescription
java.lang.Object
org.jboss.as.ee.component.ViewDescription
A description of a view.
- Author:
- David M. Lloyd
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final org.jboss.invocation.ImmediateInterceptorFactory -
Constructor Summary
ConstructorsConstructorDescriptionViewDescription(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
Modifier and TypeMethodDescriptionprotected InjectionSourcecreateInjectionSource(org.jboss.msc.service.ServiceName serviceName, Supplier<ClassLoader> viewClassLoader, boolean appclient) Create the injection sourcecreateViewConfiguration(Class<?> viewClass, ComponentConfiguration componentConfiguration, org.jboss.invocation.proxy.ProxyFactory<?> proxyFactory) Creates view configuration.booleanGet the set of binding names for this view.Get the associated component description.Get the configurators for this view.org.jboss.msc.service.ServiceNameGet the service name for this view.Get the view's class name.Get the strings to append to the view base name.inthashCode()booleanbooleanbooleanvoidsetSerializable(boolean serializable) voidsetUseWriteReplace(boolean useWriteReplace) toString()
-
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
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 Details
-
getViewClassName
Get the view's class name.- Returns:
- the class name
-
getComponentDescription
Get the associated component description.- Returns:
- the component description
-
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
Get the set of binding names for this view.- Returns:
- the set of binding names
-
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) -
toString
-
equals
-
hashCode
public int hashCode() -
getMarkupClassName
-
requiresSuperclassInProxy
public boolean requiresSuperclassInProxy()
-