0

我尝试修改 WSO2 中的 VFSTransportListener 类。但是我遇到了这个错误:

Multiple markers at this line
- Cannot override the final method from AbstractTransportListenerEx<PollTableEntry>
- overrides org.apache.axis2.transport.base.AbstractTransportListenerEx<org.apache.synapse.transport.vfs.PollTableEntry>.init

此错误发生在 init 方法中。谁能帮我解决这个问题?

4

1 回答 1

0

您正在尝试覆盖 AbstractTransportListenerEx 类中的以下方法

@Override
public final void init(ConfigurationContext cfgCtx,
        TransportInDescription transportIn) throws AxisFault {

    super.init(cfgCtx, transportIn);

    doInit();

    // Create endpoint configured at transport level (if available)
    E endpoint = createEndpoint();
    endpoint.init(this, null);
    if (endpoint.loadConfiguration(transportIn)) {
        globalEndpoint = endpoint;
    }
}

这不能被覆盖,因为它是最终方法。

于 2013-08-20T10:13:11.223 回答