blob: fda45cd187f5daecbc0c1e232b580b443f220a26 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package cbt;
import java.io.*;
public interface Dependency{
// recently added methods that needs default values for old versions to work
public default String moduleKey(){
throw new IncompatibleCbtVersionException("You need to override this method.");
};
public default long lastModified(){
throw new IncompatibleCbtVersionException("You need to override this method.");
};
public default ClassLoader classLoader(){
throw new IncompatibleCbtVersionException("You need to override this method.");
};
// methods that exist for longer which every CBT version in use should have by now, no default values needed
public abstract String show();
public abstract Dependency[] dependenciesArray();
public abstract File[] exportedClasspathArray();
// deprecated methods
@java.lang.Deprecated
public abstract boolean needsUpdateCompat();
@java.lang.Deprecated
public abstract File[] dependencyClasspathArray();
}
|