aboutsummaryrefslogtreecommitdiff
path: root/compatibility/Dependency.java
blob: e23faa6465fc62a64571f74d692740526c215496 (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
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 define method moduleKey.");
  };
  public default long lastModified(){
    throw new IncompatibleCbtVersionException("You need to define method lastModified.");
  };

  // 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();
}