Skip to content

Commit f993bce

Browse files
committed
protect methods in NFI
1 parent e59176f commit f993bce

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: dev/io.openliberty.netty.internal.impl/src/io/openliberty/netty/internal/impl/NettyFrameworkImpl.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -94,31 +94,31 @@ public class NettyFrameworkImpl implements ServerQuiesceListener, NettyFramework
9494
private CHFWBundle chfw;
9595
private volatile boolean isActive = false;
9696

97-
private ScheduledExecutorService scheduledExecutorService = null;
97+
private ScheduledExecutorService scheduledExecutorService = null;
9898

9999

100-
@Activate
101-
public void activate(ComponentContext context, Map<String, Object> config) {
100+
@Activate
101+
public void activate(ComponentContext context, Map<String, Object> config) {
102102
// Ideally use the executor service provided by Liberty
103103
// Compared to channelfw, quiesce is hit every time because
104104
// connections are lazy cleaned on deactivate
105105
parentGroup = new NioEventLoopGroup(1);
106106
// specify 0 for the "default" number of threads,
107107
// (java.lang.Runtime.availableProcessors() * 2)
108108
childGroup = new NioEventLoopGroup(0);
109-
}
109+
}
110110

111-
@Deactivate
112-
public void deactivate(ComponentContext context, Map<String, Object> properties) {
111+
@Deactivate
112+
protected void deactivate(ComponentContext context, Map<String, Object> properties) {
113113
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
114114
Tr.event(this, tc, "Deactivate called", new Object[] {context, properties});
115115
}
116116
EndPointMgrImpl.destroyEndpoints();
117117
stopEventLoops();
118-
}
118+
}
119119

120120
@Modified
121-
public void modified(ComponentContext context, Map<String, Object> config) {
121+
protected void modified(ComponentContext context, Map<String, Object> config) {
122122
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
123123
Tr.event(this, tc, "Processing config", config);
124124
}
@@ -153,7 +153,7 @@ protected void unsetChfwBundle(CHFWBundle bundle) {
153153
* queue work to.
154154
*/
155155
@Reference(service = ExecutorService.class, cardinality = ReferenceCardinality.MANDATORY)
156-
public void setExecutorService(ExecutorService executorService) {
156+
protected void setExecutorService(ExecutorService executorService) {
157157
this.executorService = executorService;
158158
}
159159

@@ -312,7 +312,7 @@ private void stopEventLoops() {
312312
* @param ref reference to the ServerStarted service
313313
*/
314314
@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) {
316316
// set will be called when the ServerStarted service has been registered (by the
317317
// FeatureManager as of 9/2015). This is a signal that
318318
// the server is fully started, but before the "smarter planet" message has been

0 commit comments

Comments
 (0)