@@ -94,31 +94,31 @@ public class NettyFrameworkImpl implements ServerQuiesceListener, NettyFramework
94
94
private CHFWBundle chfw ;
95
95
private volatile boolean isActive = false ;
96
96
97
- private ScheduledExecutorService scheduledExecutorService = null ;
97
+ private ScheduledExecutorService scheduledExecutorService = null ;
98
98
99
99
100
- @ Activate
101
- public void activate (ComponentContext context , Map <String , Object > config ) {
100
+ @ Activate
101
+ public void activate (ComponentContext context , Map <String , Object > config ) {
102
102
// Ideally use the executor service provided by Liberty
103
103
// Compared to channelfw, quiesce is hit every time because
104
104
// connections are lazy cleaned on deactivate
105
105
parentGroup = new NioEventLoopGroup (1 );
106
106
// specify 0 for the "default" number of threads,
107
107
// (java.lang.Runtime.availableProcessors() * 2)
108
108
childGroup = new NioEventLoopGroup (0 );
109
- }
109
+ }
110
110
111
- @ Deactivate
112
- public void deactivate (ComponentContext context , Map <String , Object > properties ) {
111
+ @ Deactivate
112
+ protected void deactivate (ComponentContext context , Map <String , Object > properties ) {
113
113
if (TraceComponent .isAnyTracingEnabled () && tc .isEventEnabled ()) {
114
114
Tr .event (this , tc , "Deactivate called" , new Object [] {context , properties });
115
115
}
116
116
EndPointMgrImpl .destroyEndpoints ();
117
117
stopEventLoops ();
118
- }
118
+ }
119
119
120
120
@ Modified
121
- public void modified (ComponentContext context , Map <String , Object > config ) {
121
+ protected void modified (ComponentContext context , Map <String , Object > config ) {
122
122
if (TraceComponent .isAnyTracingEnabled () && tc .isEventEnabled ()) {
123
123
Tr .event (this , tc , "Processing config" , config );
124
124
}
@@ -153,7 +153,7 @@ protected void unsetChfwBundle(CHFWBundle bundle) {
153
153
* queue work to.
154
154
*/
155
155
@ Reference (service = ExecutorService .class , cardinality = ReferenceCardinality .MANDATORY )
156
- public void setExecutorService (ExecutorService executorService ) {
156
+ protected void setExecutorService (ExecutorService executorService ) {
157
157
this .executorService = executorService ;
158
158
}
159
159
@@ -312,7 +312,7 @@ private void stopEventLoops() {
312
312
* @param ref reference to the ServerStarted service
313
313
*/
314
314
@ Reference (service = ServerStarted .class , policy = ReferencePolicy .DYNAMIC , cardinality = ReferenceCardinality .OPTIONAL , policyOption = ReferencePolicyOption .GREEDY )
315
- public void setServerStarted (ServiceReference <ServerStarted > ref ) {
315
+ protected void setServerStarted (ServiceReference <ServerStarted > ref ) {
316
316
// set will be called when the ServerStarted service has been registered (by the
317
317
// FeatureManager as of 9/2015). This is a signal that
318
318
// the server is fully started, but before the "smarter planet" message has been
0 commit comments