01: package org.drools.brms.server.selector;
02:
03: import org.drools.repository.AssetItem;
04:
05: /**
06: *
07: * Asset selectors can be used to choose if an asset is part of a build.
08: *
09: * Asset selectors should be stateless, they will be called multiple times.
10: *
11: * @author Michael Neale
12: *
13: */
14: public interface AssetSelector {
15:
16: /**
17: *
18: * @param asset The asset to be tested.
19: * @return true if asset it allowed.
20: */
21: boolean isAssetAllowed(AssetItem asset);
22:
23: }
|