zhangherong
2025-06-17 0ecd8b8c158436b23298b66b64eaef0438b6425b
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
28
29
30
31
32
33
34
35
package org.jeecg.config.sap;
 
import com.sap.conn.jco.ext.*;
 
import java.util.Properties;
 
public class CustomDestinationDataProvider implements DestinationDataProvider {
 
    private final String destName;
    private final Properties properties;
 
    public CustomDestinationDataProvider(String destName, Properties props) {
        this.destName = destName;
        this.properties = props;
    }
 
 
    @Override
    public boolean supportsEvents() {
        return false;
    }
 
    @Override
    public void setDestinationDataEventListener(DestinationDataEventListener destinationDataEventListener) {
 
    }
 
    @Override
    public Properties getDestinationProperties(String destinationName) {
        if (destName.equals(destinationName)) {
            return properties;
        }
        return null;
    }
}