FELIX-3910: Renamed some methods/class attributes starting with an underscore.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1546463 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ServiceDependencyImpl.java b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ServiceDependencyImpl.java
index 3eab51d..845eb09 100644
--- a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ServiceDependencyImpl.java
+++ b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ServiceDependencyImpl.java
@@ -89,7 +89,7 @@
/**
* Executor used to ensure proper synchronization without holding locks.
*/
- private final BlockingSerialExecutor _serial = new BlockingSerialExecutor();
+ private final BlockingSerialExecutor m_serial = new BlockingSerialExecutor();
// ----------------------- Inner classes --------------------------------------------------------------
@@ -275,20 +275,20 @@
//@Override
public void start(final DependencyService service) {
- _serial.execute(new Runnable() {
+ m_serial.execute(new Runnable() {
public void run() {
// this code is executed exclusively and without holding any locks
- _start(service);
+ doStart(service);
}
});
}
//@Override
public void stop(final DependencyService service) {
- _serial.execute(new Runnable() {
+ m_serial.execute(new Runnable() {
public void run() {
// this code is executed exclusively and without holding any locks
- _stop(service);
+ doStop(service);
}
});
}
@@ -305,50 +305,50 @@
//@Override
public void addedService(final ServiceReference ref, final Object service) {
- _serial.execute(new Runnable() {
+ m_serial.execute(new Runnable() {
public void run() {
// this code is executed exclusively and without holding any locks
- _addedService(ref, service);
+ doAddedService(ref, service);
}
});
}
//@Override
public void modifiedService(final ServiceReference ref, final Object service) {
- _serial.execute(new Runnable() {
+ m_serial.execute(new Runnable() {
public void run() {
// this code is executed exclusively and without holding any locks
- _modifiedService(ref, service);
+ doModifiedService(ref, service);
}
});
}
//@Override
public void removedService(final ServiceReference ref, final Object service) {
- _serial.execute(new Runnable() {
+ m_serial.execute(new Runnable() {
public void run() {
// this code is executed exclusively and without holding any locks
- _removedService(ref, service);
+ doRemovedService(ref, service);
}
});
}
//@Override
public void invokeAdded(final DependencyService service) {
- _serial.execute(new Runnable() {
+ m_serial.execute(new Runnable() {
public void run() {
// this code is executed exclusively and without holding any locks
- _invokeAdded(service);
+ doInvokeAdded(service);
}
});
}
//@Override
public void invokeRemoved(final DependencyService service) {
- _serial.execute(new Runnable() {
+ m_serial.execute(new Runnable() {
public void run() {
// this code is executed exclusively and without holding any locks
- _invokeRemoved(service);
+ doInvokeRemoved(service);
}
});
}
@@ -721,7 +721,7 @@
// --------------------------------------- Private methods --------------------------------------------
- private void _start(DependencyService service) {
+ private void doStart(DependencyService service) {
boolean needsStarting = false;
synchronized (this) {
m_services.add(service);
@@ -756,7 +756,7 @@
}
}
- private void _stop(DependencyService service) {
+ private void doStop(DependencyService service) {
boolean needsStopping = false;
synchronized (this) {
if (m_services.size() == 1 && m_services.contains(service)) {
@@ -774,7 +774,7 @@
}
}
- private void _addedService(ServiceReference ref, Object service) {
+ private void doAddedService(ServiceReference ref, Object service) {
if (m_debug) {
m_logger.log(Logger.LOG_DEBUG, "[" + m_debugKey + "] addedservice: " + ref);
}
@@ -829,7 +829,7 @@
}
}
- private void _modifiedService(ServiceReference ref, Object service) {
+ private void doModifiedService(ServiceReference ref, Object service) {
Object[] services;
synchronized (this) {
services = m_services.toArray();
@@ -843,7 +843,7 @@
}
}
- private void _removedService(ServiceReference ref, Object service) {
+ private void doRemovedService(ServiceReference ref, Object service) {
if (m_debug) {
m_logger.log(Logger.LOG_DEBUG, "[" + m_debugKey + "] removedservice: " + ref + ", rank: " + ref.getProperty("service.ranking"));
}
@@ -875,7 +875,7 @@
}
- private void _invokeAdded(DependencyService service) {
+ private void doInvokeAdded(DependencyService service) {
if (m_debug) {
m_logger.log(Logger.LOG_DEBUG, "[" + m_debugKey + "] invoke added due to configure. (component is activated)");
}
@@ -889,7 +889,7 @@
}
}
- private void _invokeRemoved(DependencyService service) {
+ private void doInvokeRemoved(DependencyService service) {
if (m_debug) {
m_logger.log(Logger.LOG_DEBUG, "[" + m_debugKey + "] invoke removed due to unconfigure. (component is destroyed)");
}