47484950515253
private int offset; private UserAbstractFactory factory; public CenterUserMongo(MongoDatastore db) { coll = db.getDB().getCollection(Constants.USERS_COLLECTION); factory = new UserFactoryDefaultImpl(); }
5253545556575859
factory = new UserFactoryDefaultImpl(); } public CenterUserMongo(MongoDatastore db, int centerUsersOnPage) { coll = db.getDB().getCollection(Constants.USERS_COLLECTION); factory = new UserFactoryDefaultImpl(); offset = centerUsersOnPage; }
2425262728293031
private static UserFactoryBuilder instance = new UserFactoryBuilder(); private UserFactoryBuilder() {} private UserAbstractFactory initAndGet() { factory = new UserFactoryDefaultImpl(); return factory; }