Package org.jayasoft.woj.client.services.cache

Examples of org.jayasoft.woj.client.services.cache.ZippedFileCache


    }
    private void initPreferences() {
        EclipsePreferenceWrapper eclipsePreferenceWrapper = new EclipsePreferenceWrapper(getPreferenceStore());
    WojServicesHelper.getDefault().setPreferences(eclipsePreferenceWrapper);
        String cacheDir = getStateLocation().toString();
    final ZippedFileCache cache = new ZippedFileCache(cacheDir);
    final LocalAssociation localAssociation = new LocalAssociation(cacheDir);
    WojServicesHelper.getDefault().setWojCache(cache);
    WojServicesHelper.getDefault().setLocalAsso(localAssociation);
    //Cleanup when user change
        WojServicesHelper.getDefault().addUserListener(new UserListener() {
          public void userChange(String newLogin) {
            cache.doCleanup();
            localAssociation.clearAll();
          }
    });
        //default value
        if(StringUtils.isEmpty(getPreferenceStore().getString(PreferenceConstants.P_USE_HTTPCLIENT))) {
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.client.services.cache.ZippedFileCache

Copyright © 2018 www.massapicom. 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.