Dashboard Builder Commons 6.0.0.Beta4

org.jboss.dashboard.factory
Interface ComponentsStorage

All Known Implementing Classes:
GlobalComponentsStorage, VolatileComponentsStorage

public interface ComponentsStorage

Interface that stores components to be looked up (will be backed up by a Map, a request, a session, ...)


Method Summary
 void clear()
          Clears internal storage
 Object getComponent(String name)
          Gets stored component
 Object getSynchronizationObject()
          Object to synchronize to, to guarantee that components are not created twice for same scope.
 void setComponent(String name, Object component)
          Save a component to the storage.
 

Method Detail

setComponent

void setComponent(String name,
                  Object component)
Save a component to the storage.

Parameters:
name - Component name
component - Component to save

getComponent

Object getComponent(String name)
Gets stored component

Parameters:
name - Component name
Returns:
The stored component, or null if there is none.

clear

void clear()
Clears internal storage


getSynchronizationObject

Object getSynchronizationObject()
Object to synchronize to, to guarantee that components are not created twice for same scope. Completely dependent on scope

Returns:

Dashboard Builder Commons 6.0.0.Beta4

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.