переход на groovy конфигурацию
This commit is contained in:
18
proto_1.12.2_netty/sample-config.groovy
Normal file
18
proto_1.12.2_netty/sample-config.groovy
Normal file
@@ -0,0 +1,18 @@
|
||||
beans {
|
||||
xmlns([context: 'http://www.springframework.org/schema/context'])
|
||||
context.'annotation-config'()
|
||||
context.'component-scan'('base-package': 'mc.core.network.proto_1_12_2.netty')
|
||||
|
||||
/* Для логирования сетевых пакетов, можно добавить нижезакомментированный бин */
|
||||
//'pipeline.log'(io.netty.handler.logging.LoggingHandler) { bean -> bean.scope = 'prototype' }
|
||||
'pipeline.decoder'(mc.core.network.proto_1_12_2.netty.PacketDecoder) { bean -> bean.scope = 'prototype' }
|
||||
'pipeline.postencoder'(mc.core.network.proto_1_12_2.netty.PacketPostEncoder) { bean -> bean.scope = 'prototype' }
|
||||
'pipeline.encoder'(mc.core.network.proto_1_12_2.netty.PacketEncoder) { bean -> bean.scope = 'prototype' }
|
||||
'pipeline.handler'(mc.core.network.proto_1_12_2.netty.PacketHandler) { bean -> bean.scope = 'prototype' }
|
||||
|
||||
server(mc.core.network.proto_1_12_2.netty.NettyServer) {
|
||||
host = '127.0.0.1'
|
||||
port = 25565
|
||||
workerGroupCount = 2
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user