.getInstance(FeatureAttributes.class);
}
+ private FeatureAttributes()
+ {
+ attributes = new HashMap<>();
+ }
+
/*
* map, by feature type, of a map, by attribute name, of
* attribute description and min-max range (if known)
}
}
- private FeatureAttributes()
- {
- attributes = new HashMap<>();
- }
-
/**
* Answers the attribute names known for the given feature type, in
* alphabetical order (not case sensitive), or an empty set if no attributes
public final String uniprotSearchEndpoint;
- public UniProtFTSRestClient()
+ private UniProtFTSRestClient()
{
super();
uniprotSearchEndpoint = Cache.getDefault("UNIPROT_DOMAIN",
return (HttpServer) ApplicationSingletonProvider.getInstance(HttpServer.class);
}
}
+
+ /**
+ * Private constructor to enforce use of singleton
+ *
+ * @throws BindException
+ * if no free port can be assigned
+ */
+ private HttpServer() throws BindException
+ {
+ startServer();
+
+ /*
+ * Provides a REST server by default; add more programmatically as required
+ */
+ registerHandler(RestHandler.getInstance());
+ }
+
+
/*
* 'context root' - actually just prefixed to the path for each handler for
* now - see registerHandler
/**
- * Private constructor to enforce use of singleton
- *
- * @throws BindException
- * if no free port can be assigned
- */
- private HttpServer() throws BindException
- {
- startServer();
-
- /*
- * Provides a REST server by default; add more programmatically as required
- */
- registerHandler(RestHandler.getInstance());
- }
-
- /**
* Start the http server
*
* @throws BindException
return (FileFormats) ApplicationSingletonProvider.getInstance(FileFormats.class);
}
+ /**
+ * Private constructor registers Jalview's built-in file formats
+ */
+ private FileFormats()
+ {
+ reset();
+ }
/*
* A lookup map of file formats by upper-cased name
*/
private Set<FileFormatI> identifiable;
- /**
- * Private constructor registers Jalview's built-in file formats
- */
- private FileFormats()
- {
- reset();
- }
/**
* Reset to just the built-in file formats packaged with Jalview. These are
return (AppCache) ApplicationSingletonProvider.getInstance(AppCache.class);
}
+ private AppCache()
+ {
+ cacheItems = new Hashtable<String, LinkedHashSet<String>>();
+ }
+
public static final String DEFAULT_LIMIT = "99";
public static final String CACHE_DELIMITER = ";";
private Hashtable<String, LinkedHashSet<String>> cacheItems;
- private AppCache()
- {
- cacheItems = new Hashtable<String, LinkedHashSet<String>>();
- }
/**
* Method to obtain all the cache items for a given cache key
.getInstance(SequenceOntologyFactory.class);
}
+ private SequenceOntologyFactory()
+ {
+ // private singleton
+ }
+
+
/**
* Answers the configured model of the Sequence Ontology.
*
private SequenceOntologyI sequenceOntology;
- private SequenceOntologyFactory()
- {
- // private singleton
- }
-
}
}
/**
+ * Private constructor as all 'singleton' instances are managed here or by
+ * ApplicationSingletonProvider
+ */
+ private StructureSelectionManager()
+ {
+ selectionManagers = new IdentityHashMap<>();
+ }
+
+ /**
* Answers an instance of this class for the current application (Java or JS
* 'applet') scope, and scoped to the specified context
*
return instance;
}
- /**
- * Private constructor as all 'singleton' instances are managed here or by
- * ApplicationSingletonProvider
- */
- private StructureSelectionManager()
- {
- selectionManagers = new IdentityHashMap<>();
- }
/**
* @return true if will try to use external services for processing secondary
.getInstance(IdOrgSettings.class);
}
+ private IdOrgSettings()
+ {
+ // private singleton
+ }
+
public static void setUrl(String seturl)
{
getInstance().url = seturl;
{
return getInstance().location;
}
-
- private IdOrgSettings()
- {
- // private singleton
- }
}
implements WSClientI, WSMenuEntryProviderI, ApplicationSingletonI
{
+ @SuppressWarnings("unused")
+ private RestClient()
+ {
+ // accessed by ApplicationSingletonProvider
+ }
+
+
private static RestClient getInstance()
{
return (RestClient) ApplicationSingletonProvider.getInstance(RestClient.class);