Author: thomas.diesler(a)jboss.com
Date: 2009-11-12 02:34:09 -0500 (Thu, 12 Nov 2009)
New Revision: 96300
Modified:
projects/jboss-osgi/projects/runtime/deployers/trunk/src/main/java/org/jboss/osgi/deployer/BundleStartStopDeployer.java
Log:
Better readability of PROPERTY_AUTO_START default
Modified:
projects/jboss-osgi/projects/runtime/deployers/trunk/src/main/java/org/jboss/osgi/deployer/BundleStartStopDeployer.java
===================================================================
---
projects/jboss-osgi/projects/runtime/deployers/trunk/src/main/java/org/jboss/osgi/deployer/BundleStartStopDeployer.java 2009-11-12
07:03:28 UTC (rev 96299)
+++
projects/jboss-osgi/projects/runtime/deployers/trunk/src/main/java/org/jboss/osgi/deployer/BundleStartStopDeployer.java 2009-11-12
07:34:09 UTC (rev 96300)
@@ -66,8 +66,11 @@
public void deploy(DeploymentUnit unit, Bundle bundle) throws DeploymentException
{
- Boolean propAutoStart = unit.getAttachment(OSGiConstants.PROPERTY_AUTO_START,
Boolean.class);
- if (propAutoStart == null || Boolean.TRUE.equals(propAutoStart))
+ Boolean autoStart = unit.getAttachment(OSGiConstants.PROPERTY_AUTO_START,
Boolean.class);
+ if (autoStart == null)
+ autoStart = Boolean.TRUE;
+
+ if (autoStart == true)
{
String propDeferredStart =
systemContext.getProperty(OSGiConstants.PROPERTY_DEFERRED_START);
if (Boolean.parseBoolean(propDeferredStart != null ? propDeferredStart :
"true") == true)
Show replies by date