0
我米試圖使用M2E(行家)插件在Eclipse中運行i-jetty。在線路530提供了文件IJettyService.java的源代碼,使此調用Java類文件的構造函數沒有被調用
SslSelectChannelConnector sslConnector = new SslSelectChannelConnector(sslContextFactory);
的Eclipse IDE這裏抱怨
The constructor SslSelectChannelConnector(SslContextFactory) is
undefined
,所以我用一個反編譯器,並發現它的存在。
/* ------------------------------------------------------------ */
public SslSelectChannelConnector()
{
this(new SslContextFactory(SslContextFactory.DEFAULT_KEYSTORE_PATH));
setSoLingerTime(30000);
}
/* ------------------------------------------------------------ */
/** Construct with explicit SslContextFactory.
* The SslContextFactory passed is added via {@link #addBean(Object)} so that
* it's lifecycle may be managed with {@link AggregateLifeCycle}.
* @param sslContextFactory
*/
public SslSelectChannelConnector(SslContextFactory sslContextFactory)
{
_sslContextFactory = sslContextFactory;
addBean(_sslContextFactory);
setUseDirectBuffers(false);
setSoLingerTime(30000);
}
我不明白爲什麼它的行爲這樣。有沒有人遇到類似的問題?