Class WorldScopedObjects

java.lang.Object
it.uniroma2.art.semanticturkey.multiverse.WorldScopedObjects

public class WorldScopedObjects extends Object
Holds objectes scoped to a given world. An instance of this class should be handled with a lock held on the MultiverseM MultiverseManager.
Author:
Manuel Fiorelli
  • Constructor Details

    • WorldScopedObjects

      public WorldScopedObjects()
  • Method Details

    • get

      public Object get(String name)
    • put

      public void put(String name, Object scopedObject)
    • remove

      public Object remove(String name)
    • registerDestructionCallback

      public void registerDestructionCallback(String name, Runnable callback)
    • executeDestructionCallbacks

      public void executeDestructionCallbacks()
    • computeIfAbsent

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