Dashboard Builder Commons 6.0.0.Beta1

org.jboss.dashboard.factory
Class VolatileComponentsStorage

java.lang.Object
  extended by org.jboss.dashboard.factory.VolatileComponentsStorage
All Implemented Interfaces:
ComponentsStorage

public class VolatileComponentsStorage
extends Object
implements ComponentsStorage

Fake storage for volatile components


Constructor Summary
VolatileComponentsStorage()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VolatileComponentsStorage

public VolatileComponentsStorage()
Method Detail

setComponent

public void setComponent(String name,
                         Object component)
Description copied from interface: ComponentsStorage
Save a component to the storage.

Specified by:
setComponent in interface ComponentsStorage
Parameters:
name - Component name
component - Component to save

getComponent

public Object getComponent(String name)
Description copied from interface: ComponentsStorage
Gets stored component

Specified by:
getComponent in interface ComponentsStorage
Parameters:
name - Component name
Returns:
The stored component, or null if there is none.

clear

public void clear()
Description copied from interface: ComponentsStorage
Clears internal storage

Specified by:
clear in interface ComponentsStorage

getSynchronizationObject

public Object getSynchronizationObject()
Description copied from interface: ComponentsStorage
Object to synchronize to, to guarantee that components are not created twice for same scope. Completely dependent on scope

Specified by:
getSynchronizationObject in interface ComponentsStorage
Returns:

Dashboard Builder Commons 6.0.0.Beta1

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