org.codeforamerica.open311.facade.data
Class RelationshipManager
java.lang.Object
org.codeforamerica.open311.facade.data.RelationshipManager
public class RelationshipManager
- extends Object
This class maintains a map between APIWrapper
and Service
instances. This is useful to allow a service to request its service
definition without knowing the APIWrapper
which created it in
advance.
This class is only called by instances of classes from its package.
Singleton class.
- Author:
- Santiago MunĂn
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static RelationshipManager getInstance()
- Returns:
- Unique instance of the class.
addServiceWrapperRelationship
public void addServiceWrapperRelationship(List<Service> services,
APIWrapper originator)
- Adds a relationship between a List<
Service
> and the
APIWrapper
which generated it.
- Parameters:
services
- list of services.originator
- Service
generator.
Copyright © 2013 Code for America. All Rights Reserved.