org.springframework.richclient.application.support
Class SimpleViewDescriptorRegistry

Show UML class diagram
java.lang.Object
  extended by org.springframework.richclient.application.support.SimpleViewDescriptorRegistry
All Implemented Interfaces:
ViewDescriptorRegistry

public class SimpleViewDescriptorRegistry
extends Object
implements ViewDescriptorRegistry

Very simple ViewDescriptorRegistry implementation, mostly for testing purposes.

Author:
Peter De Bruycker

Constructor Summary
SimpleViewDescriptorRegistry()
           
SimpleViewDescriptorRegistry(List<ViewDescriptor> descriptors)
           
 
Method Summary
 void addViewDescriptor(ViewDescriptor descriptor)
           
 ViewDescriptor getViewDescriptor(String viewDescriptorId)
          Returns the view descriptor with the given identifier, or null if no such descriptor exists in the registry.
 ViewDescriptor[] getViewDescriptors()
          Returns an array of all the view descriptors in the registry.
 void removeViewDescriptor(ViewDescriptor descriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleViewDescriptorRegistry

public SimpleViewDescriptorRegistry()

SimpleViewDescriptorRegistry

public SimpleViewDescriptorRegistry(List<ViewDescriptor> descriptors)
Method Detail

addViewDescriptor

public void addViewDescriptor(ViewDescriptor descriptor)

removeViewDescriptor

public void removeViewDescriptor(ViewDescriptor descriptor)

getViewDescriptor

public ViewDescriptor getViewDescriptor(String viewDescriptorId)
Description copied from interface: ViewDescriptorRegistry
Returns the view descriptor with the given identifier, or null if no such descriptor exists in the registry.

Specified by:
getViewDescriptor in interface ViewDescriptorRegistry
Parameters:
viewDescriptorId - The id of the view descriptor to be returned.
Returns:
The view descriptor with the given id, or null.

getViewDescriptors

public ViewDescriptor[] getViewDescriptors()
Description copied from interface: ViewDescriptorRegistry
Returns an array of all the view descriptors in the registry.

Specified by:
getViewDescriptors in interface ViewDescriptorRegistry
Returns:
An array of all the view descriptors in the registry. The array may be empty but will never be null.


Copyright © 2004-2009 The Spring Framework. All Rights Reserved.