public static AlignmentSorter getInstance()
{
- return (AlignmentSorter) ApplicationSingletonProvider
- .getInstance(AlignmentSorter.class);
+ return ApplicationSingletonProvider.getInstance(AlignmentSorter.class);
}
/**
*/
public static ScoreModels getInstance()
{
- return (ScoreModels) ApplicationSingletonProvider.getInstance(ScoreModels.class);
+ return ApplicationSingletonProvider.getInstance(ScoreModels.class);
}
/**
*/
public static Cache getInstance()
{
- return (Cache) ApplicationSingletonProvider.getInstance(Cache.class);
+ return ApplicationSingletonProvider.getInstance(Cache.class);
}
/**
* property giving log4j level for CASTOR loggers
// }
public static Jalview getInstance()
{
- return (Jalview) ApplicationSingletonProvider
- .getInstance(Jalview.class);
+ return ApplicationSingletonProvider.getInstance(Jalview.class);
}
private Jalview()
public static FeatureAttributes getInstance()
{
- return (FeatureAttributes) ApplicationSingletonProvider
- .getInstance(FeatureAttributes.class);
+ return ApplicationSingletonProvider.getInstance(FeatureAttributes.class);
}
private FeatureAttributes()
public static FeatureSources getInstance()
{
- return (FeatureSources) ApplicationSingletonProvider
- .getInstance(FeatureSources.class);
+ return ApplicationSingletonProvider.getInstance(FeatureSources.class);
}
private Map<String, FeatureSourceI> sources;
public static FTSRestClientI getInstance()
{
- return (FTSRestClientI) ApplicationSingletonProvider
- .getInstance(PDBFTSRestClient.class);
+ return ApplicationSingletonProvider.getInstance(PDBFTSRestClient.class);
}
protected PDBFTSRestClient()
{
{
public static UniProtFTSRestClient getInstance()
{
-return (UniProtFTSRestClient) ApplicationSingletonProvider
+return ApplicationSingletonProvider
.getInstance(UniProtFTSRestClient.class);
}
private static final String DEFAULT_UNIPROT_DOMAIN = "https://rest.uniprot.org";
public static Desktop getInstance()
{
return Jalview.isHeadlessMode() ? null
- : (Desktop) ApplicationSingletonProvider
- .getInstance(Desktop.class);
+ : ApplicationSingletonProvider.getInstance(Desktop.class);
}
public static StructureSelectionManager getStructureSelectionManager()
{
synchronized (HttpServer.class)
{
- return (HttpServer) ApplicationSingletonProvider.getInstance(HttpServer.class);
+ return ApplicationSingletonProvider.getInstance(HttpServer.class);
}
}
{
public static FileFormats getInstance()
{
- return (FileFormats) ApplicationSingletonProvider.getInstance(FileFormats.class);
+ return ApplicationSingletonProvider.getInstance(FileFormats.class);
}
/**
public static AppCache getInstance()
{
- return (AppCache) ApplicationSingletonProvider.getInstance(AppCache.class);
+ return ApplicationSingletonProvider.getInstance(AppCache.class);
}
private AppCache()
*/
private static synchronized SequenceOntologyFactory getInstance()
{
- return (SequenceOntologyFactory) ApplicationSingletonProvider
+ return ApplicationSingletonProvider
.getInstance(SequenceOntologyFactory.class);
}
{
synchronized (RestHandler.class)
{
- return (RestHandler) ApplicationSingletonProvider.getInstance(RestHandler.class);
+ return ApplicationSingletonProvider.getInstance(RestHandler.class);
}
}
*/
public static ColourSchemes getInstance()
{
- return (ColourSchemes) ApplicationSingletonProvider
- .getInstance(ColourSchemes.class);
+ return ApplicationSingletonProvider.getInstance(ColourSchemes.class);
}
private ColourSchemes()
private static StructureImportSettings getInstance()
{
- return (StructureImportSettings) ApplicationSingletonProvider
+ return ApplicationSingletonProvider
.getInstance(StructureImportSettings.class);
}
/**
*/
private static StructureSelectionManager getInstance()
{
- return (StructureSelectionManager) ApplicationSingletonProvider
+ return ApplicationSingletonProvider
.getInstance(StructureSelectionManager.class);
}
private static IdOrgSettings getInstance()
{
- return (IdOrgSettings) ApplicationSingletonProvider
- .getInstance(IdOrgSettings.class);
+ return ApplicationSingletonProvider.getInstance(IdOrgSettings.class);
}
private IdOrgSettings()
public static SequenceFetcher getInstance()
{
return mockFetcher != null ? mockFetcher
- : (SequenceFetcher) ApplicationSingletonProvider
- .getInstance(SequenceFetcher.class);
+ : ApplicationSingletonProvider.getInstance(SequenceFetcher.class);
}
/**
{
public static Discoverer getInstance()
{
- return (Discoverer) ApplicationSingletonProvider.getInstance(Discoverer.class);
+ return ApplicationSingletonProvider.getInstance(Discoverer.class);
}
private Discoverer()
*/
public static Jws2Discoverer getInstance()
{
- return (Jws2Discoverer) ApplicationSingletonProvider
- .getInstance(Jws2Discoverer.class);
+ return ApplicationSingletonProvider.getInstance(Jws2Discoverer.class);
}
public static final String COMPBIO_JABAWS = "http://www.compbio.dundee.ac.uk/jabaws";
private static Jws2InstanceFactory getInstance()
{
- return (Jws2InstanceFactory) ApplicationSingletonProvider
- .getInstance(Jws2InstanceFactory.class);
+ return ApplicationSingletonProvider.getInstance(Jws2InstanceFactory.class);
}
private HashMap<String, AlignAnalysisUIText> aaConGUI;
private static RestClient getInstance()
{
-return (RestClient) ApplicationSingletonProvider.getInstance(RestClient.class);
+return ApplicationSingletonProvider.getInstance(RestClient.class);
}
public static final String RSBS_SERVICES = "RSBS_SERVICES";
*/
private static SiftsSettings getInstance()
{
- return (SiftsSettings) ApplicationSingletonProvider
- .getInstance(SiftsSettings.class);
+ return ApplicationSingletonProvider.getInstance(SiftsSettings.class);
}
private SiftsSettings()