Package org.b3log.solo.repository

Examples of org.b3log.solo.repository.PreferenceRepository.beginTransaction()


            LOGGER.log(Level.INFO, "Sets repository[path={0}]", repositoryPath);
        }

        final PreferenceRepository preferenceRepository = PreferenceRepositoryImpl.getInstance();

        final Transaction transaction = preferenceRepository.beginTransaction();

        // Cache will be cleared manaully if necessary, see loadPreference.
        transaction.clearQueryCache(false);
        try {
            loadPreference();
View Full Code Here


        // Default to skin "ease", loads from preference later
        Skins.setDirectoryForTemplateLoading("ease");

        final PreferenceRepository preferenceRepository = beanManager.getReference(PreferenceRepositoryImpl.class);

        final Transaction transaction = preferenceRepository.beginTransaction();

        try {
            loadPreference();

            if (transaction.isActive()) {
View Full Code Here

        registerRemoteJSServices();
        registerEventProcessor();

        final PreferenceRepository preferenceRepository =
                PreferenceGAERepository.getInstance();
        final Transaction transaction = preferenceRepository.beginTransaction();
        try {
            PluginManager.getInstance().load();

            loadPreference();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.