Package overit.geocall.servlet.gate
Class GateKeeper
java.lang.Object
overit.geocall.servlet.gate.GateKeeper
- All Implemented Interfaces:
Serializable
This class contains a list of
ConcreteGate each one with its own name.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the entry associated to the keyReturns the coordsReturns theConcreteGatewith a given namevoidopenDependency(String name, ConcreteGate g, Serializable referrer) Inserts an entry in the registry whose "automatic removal" depends on one external reference.voidopenStrong(String name, ConcreteGate g) Opens inserting in the registry a permanent entryvoidopenWeak(String name, ConcreteGate g) Opens inserting in the registry a permanent entry
-
Field Details
-
_wr
-
_coords
-
-
Constructor Details
-
GateKeeper
Creates a new GateKeeper- Parameters:
coords- The coords
-
-
Method Details
-
getCoords
Returns the coords- Returns:
- A map containing the coords
-
openStrong
Opens inserting in the registry a permanent entry- Parameters:
name- The name of the key fieldg- The ConcreteGate associated with the key
-
openWeak
Opens inserting in the registry a permanent entry- Parameters:
name- The name of the key fieldg- The ConcreteGate associated with the key
-
openDependency
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 fieldg- The ConcreteGate associated to the keyreferrer- The object used as reference
-
getGate
Returns theConcreteGatewith a given name- Parameters:
name- The name of theConcreteGate- Returns:
- The
ConcreteGatewith the given name
-
close
Removes the entry associated to the key- Parameters:
name- The name of the key field
-