Class GateKeeper

java.lang.Object
overit.geocall.servlet.gate.GateKeeper
All Implemented Interfaces:
Serializable

public class GateKeeper extends Object implements Serializable
This class contains a list of ConcreteGate each one with its own name.
See Also:
  • Field Details

  • Constructor Details

    • GateKeeper

      public GateKeeper(Map coords)
      Creates a new GateKeeper
      Parameters:
      coords - The coords
  • Method Details

    • getCoords

      public Map<String,String> getCoords()
      Returns the coords
      Returns:
      A map containing the coords
    • openStrong

      public void openStrong(String name, ConcreteGate g)
      Opens inserting in the registry a permanent entry
      Parameters:
      name - The name of the key field
      g - The ConcreteGate associated with the key
    • openWeak

      public void openWeak(String name, ConcreteGate g)
      Opens inserting in the registry a permanent entry
      Parameters:
      name - The name of the key field
      g - The ConcreteGate associated with the key
    • openDependency

      public void openDependency(String name, ConcreteGate g, Serializable referrer)
      Inserts an entry in the registry whose "automatic removal" depends on one external reference. Specifically, the entry will remain in the register as long as the reference is not dereferenced.
      Parameters:
      name - The name of the key field
      g - The ConcreteGate associated to the key
      referrer - The object used as reference
    • getGate

      public ConcreteGate getGate(String name)
      Returns the ConcreteGate with a given name
      Parameters:
      name - The name of the ConcreteGate
      Returns:
      The ConcreteGate with the given name
    • close

      public void close(String name)
      Removes the entry associated to the key
      Parameters:
      name - The name of the key field