Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## kieker.webgui.web.utility
Class ViewScope

    java.lang.Object
      kieker.webgui.web.utility.ViewScope

All Implemented Interfaces:
  org.springframework.beans.factory.config.Scope

    public final class ViewScope

extends Object
implements org.springframework.beans.factory.config.Scope

This is an own implementation of the view scope of Java Server Faces. This is necessary as Spring does not provide this scope. The implementation is merely rudimentary. For example, it does not provide destruction callbacks or the resolving of contextual objects. The code originates from `blog.primefaces.org`. We register the scope in the configuration file `spring-common-config.xml`. It can be used as any other Spring scope using the `Scope` annotation with the value `view`.

Author:
  Nils Christian Ehmke

Constructor Summary
`ViewScope()` Default constructor.

Method Summary
`Object` | `get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)`
`String` | `getConversationId()`
`void` | `registerDestructionCallback(String name, Runnable callback)`
`Object` | `remove(String name)`
`Object` | `resolveContextualObject(String key)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ViewScope

    public ViewScope()

  Default constructor. Do not use this constructor. This scope is Spring managed.

Method Detail

### get

    public Object get(String name,
                      org.springframework.beans.factory.ObjectFactory<?> objectFactory)

  Specified by:
    `get` in interface `org.springframework.beans.factory.config.Scope`

### remove

    public Object remove(String name)

  Specified by:
    `remove` in interface `org.springframework.beans.factory.config.Scope`

### getConversationId

    public String getConversationId()

  Specified by:
    `getConversationId` in interface `org.springframework.beans.factory.config.Scope`

### registerDestructionCallback

    public void registerDestructionCallback(String name,
                                            Runnable callback)

  Specified by:
    `registerDestructionCallback` in interface `org.springframework.beans.factory.config.Scope`

### resolveContextualObject

    public Object resolveContextualObject(String key)

  Specified by:
    `resolveContextualObject` in interface `org.springframework.beans.factory.config.Scope`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2014. All rights reserved.