Package de.cuioss.test.jsf.util
Class JsfEnvironmentHolder
- java.lang.Object
-
- de.cuioss.test.jsf.util.JsfEnvironmentHolder
-
public class JsfEnvironmentHolder extends Object
Holder for forJsfRuntimeSetupthat provides shorthands for accessing contained JSF-Objects likeFacesContext,ExternalContext,Application, ... and implicit accessor for objects likeBeanConfigDecorator,ComponentConfigDecorator,ApplicationConfigDecoratorandRequestConfigDecorator- Author:
- Oliver Wolff
-
-
Constructor Summary
Constructors Constructor Description JsfEnvironmentHolder(@NonNull JsfRuntimeSetup runtimeSetup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationgetApplication()ApplicationConfigDecoratorgetApplicationConfigDecorator()BeanConfigDecoratorgetBeanConfigDecorator()ComponentConfigDecoratorgetComponentConfigDecorator()ExternalContextgetExternalContext()FacesContextgetFacesContext()RequestConfigDecoratorgetRequestConfigDecorator()org.apache.myfaces.test.mock.MockHttpServletResponsegetResponse()
-
-
-
Constructor Detail
-
JsfEnvironmentHolder
public JsfEnvironmentHolder(@NonNull @NonNull JsfRuntimeSetup runtimeSetup)
-
-
Method Detail
-
getComponentConfigDecorator
public ComponentConfigDecorator getComponentConfigDecorator()
- Returns:
- an
ComponentConfigDecoratorfor the containedJsfRuntimeSetup
-
getBeanConfigDecorator
public BeanConfigDecorator getBeanConfigDecorator()
- Returns:
- an
BeanConfigDecoratorfor the containedJsfRuntimeSetup
-
getApplicationConfigDecorator
public ApplicationConfigDecorator getApplicationConfigDecorator()
- Returns:
- an
ApplicationConfigDecoratorfor the containedJsfRuntimeSetup
-
getRequestConfigDecorator
public RequestConfigDecorator getRequestConfigDecorator()
- Returns:
- an
ApplicationConfigDecoratorfor the containedJsfRuntimeSetup
-
getFacesContext
public FacesContext getFacesContext()
- Returns:
- an
FacesContextfor the containedJsfRuntimeSetup
-
getApplication
public Application getApplication()
- Returns:
- an
Applicationfor the containedJsfRuntimeSetup
-
getExternalContext
public ExternalContext getExternalContext()
- Returns:
- an
ExternalContextfor the containedJsfRuntimeSetup
-
getResponse
public org.apache.myfaces.test.mock.MockHttpServletResponse getResponse()
- Returns:
- an
MockHttpServletResponsefor the containedJsfRuntimeSetup
-
-