net.krecan.m2_proxy.store
Interface StoreValidator

All Known Implementing Classes:
RegExpStoreValidator

public interface StoreValidator

Validates reources in the store. Decides whether given resource is valid in the store and whether gien resource should be stored in the store.

Author:
Lukas Krecan

Field Summary
static StoreValidator EVERYTHING_VALID_VALIDATOR
           
static StoreValidator NOTHING_VALID_VALIDATOR
           
 
Method Summary
 boolean isResourceValid(Resource resource)
          Decides if the entry in the store is valid.
 boolean shouldStoreResource(Resource resource)
          Decides whether we should store the resource
 

Field Detail

EVERYTHING_VALID_VALIDATOR

static final StoreValidator EVERYTHING_VALID_VALIDATOR

NOTHING_VALID_VALIDATOR

static final StoreValidator NOTHING_VALID_VALIDATOR
Method Detail

shouldStoreResource

boolean shouldStoreResource(Resource resource)
Decides whether we should store the resource

Parameters:
resourcerPath -
Returns:

isResourceValid

boolean isResourceValid(Resource resource)
Decides if the entry in the store is valid. If resource is null, returns false.

Parameters:
resourcePath -
lastModified -
Returns:


Copyright © 2006 null. All Rights Reserved.