Michael Kublin has uploaded a new change for review. Change subject: engine: Removed unused variable from Backend bean ......................................................................
engine: Removed unused variable from Backend bean The following variable was used in order to cause for scheduler bean initialize before backend bean, these can be done by using DependsOn annotation Change-Id: If3f64ca53221e80b7f9ad760910c96578ee4d9a4 Signed-off-by: Michael Kublin <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java 1 file changed, 2 insertions(+), 6 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/42/11142/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java index de90e3a..7e2e29a 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java @@ -9,7 +9,7 @@ import javax.annotation.PostConstruct; import javax.ejb.ConcurrencyManagement; import javax.ejb.ConcurrencyManagementType; -import javax.ejb.EJB; +import javax.ejb.DependsOn; import javax.ejb.Local; import javax.ejb.Singleton; import javax.ejb.Startup; @@ -63,7 +63,6 @@ import org.ovirt.engine.core.utils.ejb.EjbUtils; import org.ovirt.engine.core.utils.log.Log; import org.ovirt.engine.core.utils.log.LogFactory; -import org.ovirt.engine.core.utils.timer.SchedulerUtil; import org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl; // Here we use a Singleton Bean @@ -73,6 +72,7 @@ // to all the business and timeout methods in the singleton. // The developer of the singleton is responsible for ensuring that the state // of the singleton is synchronized across all clients. +@DependsOn("Scheduler") @Local({ BackendLocal.class, BackendInternal.class }) @Interceptors({ ThreadLocalSessionCleanerInterceptor.class }) @Singleton @@ -80,10 +80,6 @@ @TransactionAttribute(TransactionAttributeType.SUPPORTS) @ConcurrencyManagement(ConcurrencyManagementType.BEAN) public class Backend implements BackendInternal { - - @SuppressWarnings("unused") - @EJB - private SchedulerUtil scheduler; private ITagsHandler mTagsHandler; private ErrorTranslator errorsTranslator; -- To view, visit http://gerrit.ovirt.org/11142 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If3f64ca53221e80b7f9ad760910c96578ee4d9a4 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Michael Kublin <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
