Merge pull request #325 from DevFactory/utility-classes-should-not-have-public-constructors-fix-3
Utility classes should not have public constructors
This commit is contained in:
commit
a0af0a1a76
@ -15,6 +15,9 @@ public class AppManager {
|
|||||||
|
|
||||||
private static CachingPolicy cachingPolicy;
|
private static CachingPolicy cachingPolicy;
|
||||||
|
|
||||||
|
private AppManager() {
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Developer/Tester is able to choose whether the application should use MongoDB as its underlying
|
* Developer/Tester is able to choose whether the application should use MongoDB as its underlying
|
||||||
|
@ -11,6 +11,9 @@ public class CacheStore {
|
|||||||
|
|
||||||
static LruCache cache = null;
|
static LruCache cache = null;
|
||||||
|
|
||||||
|
private CacheStore() {
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Init cache capacity
|
* Init cache capacity
|
||||||
*/
|
*/
|
||||||
|
@ -29,6 +29,9 @@ public class DbManager {
|
|||||||
|
|
||||||
private static HashMap<String, UserAccount> virtualDB;
|
private static HashMap<String, UserAccount> virtualDB;
|
||||||
|
|
||||||
|
private DbManager() {
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create DB
|
* Create DB
|
||||||
*/
|
*/
|
||||||
|
@ -21,6 +21,9 @@ import org.apache.isis.objectstore.jdo.datanucleus.IsisConfigurationForJdoIntegT
|
|||||||
|
|
||||||
public class SimpleAppSystemInitializer {
|
public class SimpleAppSystemInitializer {
|
||||||
|
|
||||||
|
private SimpleAppSystemInitializer() {
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Init test system
|
* Init test system
|
||||||
*/
|
*/
|
||||||
|
@ -32,6 +32,9 @@ public class HibernateUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private HibernateUtil() {
|
||||||
|
}
|
||||||
|
|
||||||
public static SessionFactory getSessionFactory() {
|
public static SessionFactory getSessionFactory() {
|
||||||
return SESSION_FACTORY;
|
return SESSION_FACTORY;
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,9 @@ public class ServiceLocator {
|
|||||||
|
|
||||||
private static ServiceCache serviceCache = new ServiceCache();
|
private static ServiceCache serviceCache = new ServiceCache();
|
||||||
|
|
||||||
|
private ServiceLocator() {
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetch the service with the name param from the cache first, if no service is found, lookup the
|
* Fetch the service with the name param from the cache first, if no service is found, lookup the
|
||||||
* service from the {@link InitContext} and then add the newly created service into the cache map
|
* service from the {@link InitContext} and then add the newly created service into the cache map
|
||||||
|
@ -18,6 +18,9 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
public class RainbowFishSerializer {
|
public class RainbowFishSerializer {
|
||||||
|
|
||||||
|
private RainbowFishSerializer() {
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write V1 RainbowFish to file
|
* Write V1 RainbowFish to file
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user