You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:28:33 UTC
[sling-org-apache-sling-discovery-standalone] annotated tag
org.apache.sling.discovery.standalone-1.0.2 created (now 82312aa)
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a change to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git.
at 82312aa (tag)
tagging 2ea01ae4ee899df05e74b57f81084a53c97a1481 (commit)
by Carsten Ziegeler
on Tue Dec 29 13:37:04 2015 +0000
- Log -----------------------------------------------------------------
org.apache.sling.discovery.standalone-1.0.2
-----------------------------------------------------------------------
This annotated tag includes the following new commits:
new f24d72f Create new standalone module
new 436d36c Create new standalone module
new 6ae6308 Create new support module
new b986961 Create new support module
new 5404e69 Add missing poms
new fc3f08e Update to latest parent pom
new d131e9a Use released discovery api
new 9a1ad1b [maven-release-plugin] prepare release org.apache.sling.discovery.standalone-1.0.0
new e44d368 [maven-release-plugin] prepare for next development iteration
new 4d74fb6 Update to parent pom 18
new c2ff4ad Update to parent pom v19
new c241292 Updated to parent version 20
new c83e94d Update to Sling Parent POM 22 with baselining enabled
new 7633ec0 SLING-4505 Relative paths has been set to correct value.
new 3754d88 Remove inherited dependencies
new 670f146 SLING-4698 - Set parent.relativePath to empty for all modules
new 3fdc1be Update to Sling Parent 23
new 3d9b0ec set parent version to 24 and add empty relativePath where missing
new 576d0b4 Update the main reactor to parent 25
new 13ef8b2 SLING-5405 : TopologyView contract is not correctly followed on property changes
new f7d383b [maven-release-plugin] prepare release org.apache.sling.discovery.standalone-1.0.2
new 2ea01ae [maven-release-plugin] copy for tag org.apache.sling.discovery.standalone-1.0.2
The 22 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
--
To stop receiving notification emails like this one, please contact
['"commits@sling.apache.org" <co...@sling.apache.org>'].
[sling-org-apache-sling-discovery-standalone] 09/14: Update to
Sling Parent 23
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit 3fdc1be97b0a6905e0d2e5043785c79715ce3d5e
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu Jun 25 13:08:16 2015 +0000
Update to Sling Parent 23
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone@1687500 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 1f72066..1b9ff2d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
- <version>22</version>
+ <version>23</version>
<relativePath/>
</parent>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-discovery-standalone] 08/14: SLING-4698 -
Set parent.relativePath to empty for all modules
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit 670f1469b2d3b60fa5afbf349c57858f739b3ddf
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu May 7 10:14:40 2015 +0000
SLING-4698 - Set parent.relativePath to empty for all modules
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone@1678154 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 2c87a3b..1f72066 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
<version>22</version>
- <relativePath>../../../../parent/pom.xml</relativePath>
+ <relativePath/>
</parent>
<artifactId>org.apache.sling.discovery.standalone</artifactId>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-discovery-standalone] 04/14: Updated to
parent version 20
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit c241292aa806e002869722fd60afa559e5785ff7
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri Aug 1 19:16:26 2014 +0000
Updated to parent version 20
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone@1615208 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 659a105..35f27a7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
- <version>19</version>
+ <version>20</version>
<relativePath>../../../parent/pom.xml</relativePath>
</parent>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-discovery-standalone] 02/14: Update to
parent pom 18
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit 4d74fb607e8b3660befdd19709186fcf39afe844
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Sep 6 12:15:57 2013 +0000
Update to parent pom 18
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone@1520554 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 5d10fa1..089c32c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
- <version>17</version>
+ <version>18</version>
<relativePath>../../../parent/pom.xml</relativePath>
</parent>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-discovery-standalone] 12/14: SLING-5405 :
TopologyView contract is not correctly followed on property changes
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit 13ef8b2c39b28eade983c065eeacbab536b20a6d
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Dec 29 13:35:14 2015 +0000
SLING-5405 : TopologyView contract is not correctly followed on property changes
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone@1722125 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 10 +
.../discovery/impl/standalone/ClusterViewImpl.java | 49 ++++
.../impl/standalone/InstanceDescriptionImpl.java | 67 +++++
.../impl/standalone/NoClusterDiscoveryService.java | 276 +++++----------------
.../discovery/impl/standalone/ProviderInfo.java | 89 +++++++
.../impl/standalone/TopologyViewImpl.java | 71 ++++++
.../standalone/NoClusterDiscoveryServiceTest.java | 234 +++++++++++++++++
7 files changed, 584 insertions(+), 212 deletions(-)
diff --git a/pom.xml b/pom.xml
index c2b7c08..7f8f02b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -80,5 +80,15 @@
<version>1.1.0</version>
<scope>provided</scope>
</dependency>
+
+ <!-- Testing -->
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-simple</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
</dependencies>
</project>
diff --git a/src/main/java/org/apache/sling/discovery/impl/standalone/ClusterViewImpl.java b/src/main/java/org/apache/sling/discovery/impl/standalone/ClusterViewImpl.java
new file mode 100644
index 0000000..4d20e25
--- /dev/null
+++ b/src/main/java/org/apache/sling/discovery/impl/standalone/ClusterViewImpl.java
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.sling.discovery.impl.standalone;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.sling.discovery.ClusterView;
+import org.apache.sling.discovery.InstanceDescription;
+
+public class ClusterViewImpl implements ClusterView {
+
+ private final InstanceDescription myInstance;
+
+ public ClusterViewImpl(final InstanceDescription myInstance) {
+ this.myInstance = myInstance;
+ }
+
+ @Override
+ public InstanceDescription getLeader() {
+ return myInstance;
+ }
+
+ @Override
+ public List<InstanceDescription> getInstances() {
+ return Collections.singletonList(myInstance);
+ }
+
+ @Override
+ public String getId() {
+ return "0";
+ }
+}
diff --git a/src/main/java/org/apache/sling/discovery/impl/standalone/InstanceDescriptionImpl.java b/src/main/java/org/apache/sling/discovery/impl/standalone/InstanceDescriptionImpl.java
new file mode 100644
index 0000000..96d9b9e
--- /dev/null
+++ b/src/main/java/org/apache/sling/discovery/impl/standalone/InstanceDescriptionImpl.java
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.sling.discovery.impl.standalone;
+
+import java.util.Collections;
+import java.util.Map;
+
+import org.apache.sling.discovery.ClusterView;
+import org.apache.sling.discovery.InstanceDescription;
+
+public class InstanceDescriptionImpl implements InstanceDescription {
+
+ private final String id;
+
+ private final Map<String, String> properties;
+
+ public InstanceDescriptionImpl(final String id, final Map<String, String> properties) {
+ this.id = id;
+ this.properties = Collections.unmodifiableMap(properties);
+ }
+
+ @Override
+ public boolean isLocal() {
+ return true;
+ }
+
+ @Override
+ public boolean isLeader() {
+ return true;
+ }
+
+ @Override
+ public String getSlingId() {
+ return id;
+ }
+
+ @Override
+ public String getProperty(final String name) {
+ return properties.get(name);
+ }
+
+ @Override
+ public Map<String, String> getProperties() {
+ return properties;
+ }
+
+ @Override
+ public ClusterView getClusterView() {
+ return new ClusterViewImpl(this);
+ }
+}
diff --git a/src/main/java/org/apache/sling/discovery/impl/standalone/NoClusterDiscoveryService.java b/src/main/java/org/apache/sling/discovery/impl/standalone/NoClusterDiscoveryService.java
index e495e99..209a832 100644
--- a/src/main/java/org/apache/sling/discovery/impl/standalone/NoClusterDiscoveryService.java
+++ b/src/main/java/org/apache/sling/discovery/impl/standalone/NoClusterDiscoveryService.java
@@ -20,15 +20,10 @@ package org.apache.sling.discovery.impl.standalone;
import java.util.ArrayList;
import java.util.Arrays;
-import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedList;
import java.util.List;
import java.util.Map;
-import java.util.Set;
import org.apache.felix.scr.annotations.Activate;
import org.apache.felix.scr.annotations.Component;
@@ -37,26 +32,22 @@ import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.ReferenceCardinality;
import org.apache.felix.scr.annotations.ReferencePolicy;
import org.apache.felix.scr.annotations.Service;
-import org.apache.sling.discovery.ClusterView;
import org.apache.sling.discovery.DiscoveryService;
import org.apache.sling.discovery.InstanceDescription;
-import org.apache.sling.discovery.InstanceFilter;
import org.apache.sling.discovery.PropertyProvider;
import org.apache.sling.discovery.TopologyEvent;
import org.apache.sling.discovery.TopologyEvent.Type;
import org.apache.sling.discovery.TopologyEventListener;
import org.apache.sling.discovery.TopologyView;
import org.apache.sling.settings.SlingSettingsService;
-import org.osgi.framework.Constants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* This is a simple implementation of the discovery service
* which can be used for a cluster less installation (= single instance).
- * It is disabled by default and can be enabled through a OSGi configuration.
*/
-@Component(immediate=true)
+@Component(immediate=true) // immediate as this is component is also handling the listeners
@Service(value = {DiscoveryService.class})
public class NoClusterDiscoveryService implements DiscoveryService {
@@ -90,9 +81,9 @@ public class NoClusterDiscoveryService implements DiscoveryService {
/**
* The current topology view.
*/
- private TopologyView topologyView;
+ private volatile TopologyViewImpl currentTopologyView;
- private Map<String, String> cachedProperties = new HashMap<String, String>();
+ private volatile Map<String, String> cachedProperties = Collections.emptyMap();
/**
* Activate this service
@@ -101,96 +92,7 @@ public class NoClusterDiscoveryService implements DiscoveryService {
@Activate
protected void activate() {
logger.debug("NoClusterDiscoveryService started.");
- final InstanceDescription myDescription = new InstanceDescription() {
-
- public boolean isLocal() {
- return true;
- }
-
- public boolean isLeader() {
- return true;
- }
-
- public String getSlingId() {
- return settingsService.getSlingId();
- }
-
- public String getProperty(final String name) {
- synchronized(lock) {
- return cachedProperties.get(name);
- }
- }
-
- public Map<String, String> getProperties() {
- synchronized(lock) {
- return Collections.unmodifiableMap(cachedProperties);
- }
- }
-
- public ClusterView getClusterView() {
- final Collection<ClusterView> clusters = topologyView.getClusterViews();
- if (clusters==null || clusters.size()==0) {
- return null;
- }
- return clusters.iterator().next();
- }
- };
- final Set<InstanceDescription> instances = new HashSet<InstanceDescription>();
- instances.add(myDescription);
-
- final TopologyEventListener[] registeredServices;
- synchronized ( lock ) {
- registeredServices = this.listeners;
- final ClusterView clusterView = new ClusterView() {
-
- public InstanceDescription getLeader() {
- return myDescription;
- }
-
- public List<InstanceDescription> getInstances() {
- return new LinkedList<InstanceDescription>(instances);
- }
-
- public String getId() {
- return "0";
- }
- };
- this.topologyView = new TopologyView() {
-
- public InstanceDescription getLocalInstance() {
- return myDescription;
- }
-
- public boolean isCurrent() {
- return true;
- }
-
- public Set<InstanceDescription> getInstances() {
- return instances;
- }
-
- public Set<InstanceDescription> findInstances(InstanceFilter picker) {
- Set<InstanceDescription> result = new HashSet<InstanceDescription>();
- for (Iterator<InstanceDescription> it = getTopology().getInstances().iterator(); it.hasNext();) {
- InstanceDescription instance = it.next();
- if (picker.accept(instance)) {
- result.add(instance);
- }
- }
- return result;
- }
-
- public Set<ClusterView> getClusterViews() {
- Set<ClusterView> clusters = new HashSet<ClusterView>();
- clusters.add(clusterView);
- return clusters;
- }
-
- };
- }
- for(final TopologyEventListener da: registeredServices) {
- da.handleTopologyEvent(new TopologyEvent(Type.TOPOLOGY_INIT, null, topologyView));
- }
+ createNewView(Type.TOPOLOGY_INIT, true);
}
/**
@@ -198,32 +100,55 @@ public class NoClusterDiscoveryService implements DiscoveryService {
*/
@Deactivate
protected void deactivate() {
+ synchronized ( lock ) {
+ if ( this.currentTopologyView != null ) {
+ this.currentTopologyView.invalidate();
+ this.currentTopologyView = null;
+ }
+ this.cachedProperties = null;
+ }
logger.debug("NoClusterDiscoveryService stopped.");
- this.topologyView = null;
+ }
+
+ private void createNewView(final Type eventType, boolean inform) {
+ final TopologyEventListener[] registeredServices;
+ final TopologyView newView;
+ final TopologyView oldView;
+ synchronized ( lock ) {
+ // invalidate old view
+ if ( this.currentTopologyView != null ) {
+ this.currentTopologyView.invalidate();
+ oldView = currentTopologyView;
+ } else {
+ oldView = null;
+ }
+ final InstanceDescription myInstanceDescription = new InstanceDescriptionImpl(this.settingsService.getSlingId(),
+ this.cachedProperties);
+ this.currentTopologyView = new TopologyViewImpl(myInstanceDescription);
+ registeredServices = this.listeners;
+ newView = this.currentTopologyView;
+
+ if ( inform ) {
+ for(final TopologyEventListener da: registeredServices) {
+ da.handleTopologyEvent(new TopologyEvent(eventType, oldView, newView));
+ }
+ }
+ }
}
/**
* Bind a new property provider.
*/
- @SuppressWarnings("unused")
- private void bindPropertyProvider(final PropertyProvider propertyProvider, final Map<String, Object> props) {
- logger.debug("bindPropertyProvider: Binding PropertyProvider {}", propertyProvider);
+ private void bindPropertyProvider(final PropertyProvider propertyProvider, final Map<String, Object> props) {
+ logger.debug("Binding PropertyProvider {}", propertyProvider);
- final TopologyEventListener[] awares;
synchronized (lock) {
final ProviderInfo info = new ProviderInfo(propertyProvider, props);
this.providerInfos.add(info);
Collections.sort(this.providerInfos);
this.updatePropertiesCache();
- if ( this.topologyView == null ) {
- awares = null;
- } else {
- awares = this.listeners;
- }
- }
- if ( awares != null ) {
- for(final TopologyEventListener da : awares) {
- da.handleTopologyEvent(new TopologyEvent(Type.PROPERTIES_CHANGED, this.topologyView, this.topologyView));
+ if ( this.currentTopologyView != null ) {
+ this.createNewView(Type.PROPERTIES_CHANGED, true);
}
}
}
@@ -233,10 +158,12 @@ public class NoClusterDiscoveryService implements DiscoveryService {
*/
@SuppressWarnings("unused")
private void updatedPropertyProvider(final PropertyProvider propertyProvider, final Map<String, Object> props) {
- logger.debug("bindPropertyProvider: Updating PropertyProvider {}", propertyProvider);
+ logger.debug("Updating PropertyProvider {}", propertyProvider);
- this.unbindPropertyProvider(propertyProvider, props, false);
- this.bindPropertyProvider(propertyProvider, props);
+ synchronized (lock) {
+ this.unbindPropertyProvider(propertyProvider, props, false);
+ this.bindPropertyProvider(propertyProvider, props);
+ }
}
/**
@@ -250,30 +177,24 @@ public class NoClusterDiscoveryService implements DiscoveryService {
/**
* Unbind a property provider
*/
- @SuppressWarnings("unused")
private void unbindPropertyProvider(final PropertyProvider propertyProvider,
final Map<String, Object> props,
final boolean inform) {
- logger.debug("unbindPropertyProvider: Releasing PropertyProvider {}", propertyProvider);
+ logger.debug("Releasing PropertyProvider {}", propertyProvider);
- final TopologyEventListener[] awares;
synchronized (lock) {
final ProviderInfo info = new ProviderInfo(propertyProvider, props);
this.providerInfos.remove(info);
this.updatePropertiesCache();
- if ( this.topologyView == null ) {
- awares = null;
- } else {
- awares = this.listeners;
- }
- }
- if ( inform && awares != null ) {
- for(final TopologyEventListener da : awares) {
- da.handleTopologyEvent(new TopologyEvent(Type.PROPERTIES_CHANGED, this.topologyView, this.topologyView));
+ if ( this.currentTopologyView != null ) {
+ this.createNewView(Type.PROPERTIES_CHANGED, inform);
}
}
}
+ /**
+ * Update the properties cache.
+ */
private void updatePropertiesCache() {
final Map<String, String> newProps = new HashMap<String, String>();
for(final ProviderInfo info : this.providerInfos) {
@@ -286,35 +207,28 @@ public class NoClusterDiscoveryService implements DiscoveryService {
}
@SuppressWarnings("unused")
- private void bindTopologyEventListener(final TopologyEventListener clusterAware) {
-
- logger.debug("bindTopologyEventListener: Binding TopologyEventListener {}", clusterAware);
+ private void bindTopologyEventListener(final TopologyEventListener listener) {
+ logger.debug("Binding TopologyEventListener {}", listener);
boolean inform = true;
synchronized (lock) {
- List<TopologyEventListener> currentList = new ArrayList<TopologyEventListener>(
+ final List<TopologyEventListener> currentList = new ArrayList<TopologyEventListener>(
Arrays.asList(listeners));
- currentList.add(clusterAware);
+ currentList.add(listener);
this.listeners = currentList.toArray(new TopologyEventListener[currentList.size()]);
- if ( this.topologyView == null ) {
- inform = false;
+ if ( this.currentTopologyView != null ) {
+ listener.handleTopologyEvent(new TopologyEvent(Type.TOPOLOGY_INIT, null, this.currentTopologyView));
}
}
-
- if ( inform ) {
- clusterAware.handleTopologyEvent(new TopologyEvent(Type.TOPOLOGY_INIT, null, topologyView));
- }
}
@SuppressWarnings("unused")
- private void unbindTopologyEventListener(final TopologyEventListener clusterAware) {
-
- logger.debug("unbindTopologyEventListener: Releasing TopologyEventListener {}", clusterAware);
+ private void unbindTopologyEventListener(final TopologyEventListener listener) {
+ logger.debug("Releasing TopologyEventListener {}", listener);
synchronized (lock) {
- List<TopologyEventListener> currentList = new ArrayList<TopologyEventListener>(
- Arrays.asList(listeners));
- currentList.remove(clusterAware);
+ final List<TopologyEventListener> currentList = new ArrayList<TopologyEventListener>(Arrays.asList(listeners));
+ currentList.remove(listener);
this.listeners = currentList.toArray(new TopologyEventListener[currentList.size()]);
}
}
@@ -322,70 +236,8 @@ public class NoClusterDiscoveryService implements DiscoveryService {
/**
* @see DiscoveryService#getTopology()
*/
+ @Override
public TopologyView getTopology() {
- return topologyView;
- }
-
- /**
- * Internal class caching some provider infos like service id and ranking.
- */
- private final static class ProviderInfo implements Comparable<ProviderInfo> {
-
- public final PropertyProvider provider;
- public final int ranking;
- public final long serviceId;
- public final Map<String, String> properties = new HashMap<String, String>();
-
- public ProviderInfo(final PropertyProvider provider, final Map<String, Object> serviceProps) {
- this.provider = provider;
- final Object sr = serviceProps.get(Constants.SERVICE_RANKING);
- if ( sr == null || !(sr instanceof Integer)) {
- this.ranking = 0;
- } else {
- this.ranking = (Integer)sr;
- }
- this.serviceId = (Long)serviceProps.get(Constants.SERVICE_ID);
- final Object namesObj = serviceProps.get(PropertyProvider.PROPERTY_PROPERTIES);
- if ( namesObj instanceof String ) {
- final String val = provider.getProperty((String)namesObj);
- if ( val != null ) {
- this.properties.put((String)namesObj, val);
- }
- } else if ( namesObj instanceof String[] ) {
- for(final String name : (String[])namesObj ) {
- final String val = provider.getProperty(name);
- if ( val != null ) {
- this.properties.put(name, val);
- }
- }
- }
- }
-
- /**
- * @see java.lang.Comparable#compareTo(java.lang.Object)
- */
- public int compareTo(final ProviderInfo o) {
- // Sort by rank in ascending order.
- if ( this.ranking < o.ranking ) {
- return -1; // lower rank
- } else if (this.ranking > o.ranking ) {
- return 1; // higher rank
- }
- // If ranks are equal, then sort by service id in descending order.
- return (this.serviceId < o.serviceId) ? 1 : -1;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if ( obj instanceof ProviderInfo ) {
- return ((ProviderInfo)obj).serviceId == this.serviceId;
- }
- return false;
- }
-
- @Override
- public int hashCode() {
- return provider.hashCode();
- }
+ return this.currentTopologyView;
}
}
diff --git a/src/main/java/org/apache/sling/discovery/impl/standalone/ProviderInfo.java b/src/main/java/org/apache/sling/discovery/impl/standalone/ProviderInfo.java
new file mode 100644
index 0000000..ed10061
--- /dev/null
+++ b/src/main/java/org/apache/sling/discovery/impl/standalone/ProviderInfo.java
@@ -0,0 +1,89 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.sling.discovery.impl.standalone;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.sling.discovery.PropertyProvider;
+import org.osgi.framework.Constants;
+
+/**
+ * Internal class caching some provider infos like service id and ranking.
+ */
+public class ProviderInfo implements Comparable<ProviderInfo> {
+
+ public final PropertyProvider provider;
+ public final int ranking;
+ public final long serviceId;
+ public final Map<String, String> properties = new HashMap<String, String>();
+
+ public ProviderInfo(final PropertyProvider provider, final Map<String, Object> serviceProps) {
+ this.provider = provider;
+ final Object sr = serviceProps.get(Constants.SERVICE_RANKING);
+ if ( sr == null || !(sr instanceof Integer)) {
+ this.ranking = 0;
+ } else {
+ this.ranking = (Integer)sr;
+ }
+ this.serviceId = (Long)serviceProps.get(Constants.SERVICE_ID);
+ final Object namesObj = serviceProps.get(PropertyProvider.PROPERTY_PROPERTIES);
+ if ( namesObj instanceof String ) {
+ final String val = provider.getProperty((String)namesObj);
+ if ( val != null ) {
+ this.properties.put((String)namesObj, val);
+ }
+ } else if ( namesObj instanceof String[] ) {
+ for(final String name : (String[])namesObj ) {
+ final String val = provider.getProperty(name);
+ if ( val != null ) {
+ this.properties.put(name, val);
+ }
+ }
+ }
+ }
+
+ /**
+ * @see java.lang.Comparable#compareTo(java.lang.Object)
+ */
+ @Override
+ public int compareTo(final ProviderInfo o) {
+ // Sort by rank in ascending order.
+ if ( this.ranking < o.ranking ) {
+ return -1; // lower rank
+ } else if (this.ranking > o.ranking ) {
+ return 1; // higher rank
+ }
+ // If ranks are equal, then sort by service id in descending order.
+ return (this.serviceId < o.serviceId) ? 1 : -1;
+ }
+
+ @Override
+ public boolean equals(final Object obj) {
+ if ( obj instanceof ProviderInfo ) {
+ return ((ProviderInfo)obj).serviceId == this.serviceId;
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return provider.hashCode();
+ }
+}
diff --git a/src/main/java/org/apache/sling/discovery/impl/standalone/TopologyViewImpl.java b/src/main/java/org/apache/sling/discovery/impl/standalone/TopologyViewImpl.java
new file mode 100644
index 0000000..e76ecf7
--- /dev/null
+++ b/src/main/java/org/apache/sling/discovery/impl/standalone/TopologyViewImpl.java
@@ -0,0 +1,71 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.sling.discovery.impl.standalone;
+
+import java.util.Collections;
+import java.util.Set;
+
+import org.apache.sling.discovery.ClusterView;
+import org.apache.sling.discovery.InstanceDescription;
+import org.apache.sling.discovery.InstanceFilter;
+import org.apache.sling.discovery.TopologyView;
+
+public class TopologyViewImpl implements TopologyView {
+
+ private volatile boolean current = true;
+
+ private final InstanceDescription myInstance;
+
+ public TopologyViewImpl(final InstanceDescription myInstance) {
+ this.myInstance = myInstance;
+ }
+
+ @Override
+ public InstanceDescription getLocalInstance() {
+ return myInstance;
+ }
+
+ @Override
+ public boolean isCurrent() {
+ return current;
+ }
+
+ public void invalidate() {
+ this.current = false;
+ }
+
+ @Override
+ public Set<InstanceDescription> getInstances() {
+ return Collections.singleton(this.myInstance);
+ }
+
+ @Override
+ public Set<InstanceDescription> findInstances(final InstanceFilter picker) {
+ if ( picker.accept(this.myInstance) ) {
+ return getInstances();
+ }
+ return Collections.emptySet();
+ }
+
+ @Override
+ public Set<ClusterView> getClusterViews() {
+ final ClusterView clusterView = new ClusterViewImpl(myInstance);
+ return Collections.singleton(clusterView);
+ }
+}
diff --git a/src/test/java/org/apache/sling/discovery/impl/standalone/NoClusterDiscoveryServiceTest.java b/src/test/java/org/apache/sling/discovery/impl/standalone/NoClusterDiscoveryServiceTest.java
new file mode 100644
index 0000000..7247d60
--- /dev/null
+++ b/src/test/java/org/apache/sling/discovery/impl/standalone/NoClusterDiscoveryServiceTest.java
@@ -0,0 +1,234 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.sling.discovery.impl.standalone;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+
+import java.lang.reflect.Field;
+import java.lang.reflect.Method;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.sling.discovery.DiscoveryService;
+import org.apache.sling.discovery.PropertyProvider;
+import org.apache.sling.discovery.TopologyEvent;
+import org.apache.sling.discovery.TopologyEventListener;
+import org.apache.sling.settings.SlingSettingsService;
+import org.junit.Test;
+import org.osgi.framework.Constants;
+
+public class NoClusterDiscoveryServiceTest {
+
+ private void invoke(final Object obj, final String methodName) {
+ invoke(obj, methodName, null, null);
+ }
+
+ private void invoke(final Object obj, final String methodName, final Class[] params, final Object[] args) {
+ try {
+ final Method activate = obj.getClass().getDeclaredMethod(methodName, params);
+ activate.setAccessible(true);
+ activate.invoke(obj, args);
+ } catch (final Exception e) {
+ throw new RuntimeException("Unable to invoke method " + methodName + " on " + obj, e);
+ }
+ }
+
+ private Object setField(final Object obj, final String fieldName, final Object value) {
+ Class<?> clazz = obj.getClass();
+ while ( clazz != null ) {
+ try {
+ final Field field = clazz.getDeclaredField(fieldName);
+ field.setAccessible(true);
+
+ field.set(obj, value);
+ return null;
+ } catch ( final Exception ignore ) {
+ // ignore
+ }
+ clazz = clazz.getSuperclass();
+ }
+ throw new RuntimeException("Field " + fieldName + " not found on object " + obj);
+ }
+
+ private DiscoveryService createService(final boolean activate) {
+ final DiscoveryService service = new NoClusterDiscoveryService();
+
+ setField(service, "settingsService", new SlingSettingsService() {
+
+ @Override
+ public String getSlingId() {
+ return "my-sling-id";
+ }
+
+ @Override
+ public String getSlingHomePath() {
+ return null;
+ }
+
+ @Override
+ public URL getSlingHome() {
+ return null;
+ }
+
+ @Override
+ public Set<String> getRunModes() {
+ return null;
+ }
+
+ @Override
+ public String getAbsolutePathWithinSlingHome(String relativePath) {
+ return null;
+ }
+ });
+ if ( activate ) {
+ invoke(service, "activate");
+ }
+
+ return service;
+ }
+
+ @Test public void testBasics() throws Exception {
+ final DiscoveryService service = this.createService(true);
+
+ assertNotNull(service.getTopology());
+ assertTrue(service.getTopology().isCurrent());
+
+ invoke(service, "deactivate");
+
+ assertNull(service.getTopology());
+ }
+
+ @Test public void testListenerAfter() throws Exception {
+ final DiscoveryService service = this.createService(true);
+
+ final List<TopologyEvent> events = new ArrayList<TopologyEvent>();
+
+ final TopologyEventListener listener = new TopologyEventListener() {
+
+ @Override
+ public void handleTopologyEvent(final TopologyEvent event) {
+ events.add(event);
+ }
+ };
+ invoke(service, "bindTopologyEventListener", new Class[] {TopologyEventListener.class}, new Object[] {listener});
+ assertEquals(1, events.size());
+ assertEquals(TopologyEvent.Type.TOPOLOGY_INIT, events.get(0).getType());
+ assertNotNull(events.get(0).getNewView());
+ assertNull(events.get(0).getOldView());
+ }
+
+ @Test public void testListenerBefore() throws Exception {
+ final DiscoveryService service = this.createService(false);
+
+ final List<TopologyEvent> events = new ArrayList<TopologyEvent>();
+
+ final TopologyEventListener listener = new TopologyEventListener() {
+
+ @Override
+ public void handleTopologyEvent(final TopologyEvent event) {
+ events.add(event);
+ }
+ };
+ invoke(service, "bindTopologyEventListener", new Class[] {TopologyEventListener.class}, new Object[] {listener});
+ assertEquals(0, events.size());
+
+ invoke(service, "activate");
+ assertEquals(1, events.size());
+ assertEquals(TopologyEvent.Type.TOPOLOGY_INIT, events.get(0).getType());
+ assertNotNull(events.get(0).getNewView());
+ assertNull(events.get(0).getOldView());
+ }
+
+ @Test public void testPropertyChanges() throws Exception {
+ final DiscoveryService service = this.createService(true);
+
+ final List<TopologyEvent> events = new ArrayList<TopologyEvent>();
+
+ final TopologyEventListener listener = new TopologyEventListener() {
+
+ @Override
+ public void handleTopologyEvent(final TopologyEvent event) {
+ events.add(event);
+ }
+ };
+ invoke(service, "bindTopologyEventListener", new Class[] {TopologyEventListener.class}, new Object[] {listener});
+ events.clear();
+
+ final PropertyProvider provider = new PropertyProvider() {
+
+ @Override
+ public String getProperty(final String name) {
+ if ( "a".equals(name) ) {
+ return "1";
+ }
+ if ( "b".equals(name) ) {
+ return "2";
+ }
+ if ( "c".equals(name) ) {
+ return "3";
+ }
+ return null;
+ }
+ };
+ final Map<String, Object> properties = new HashMap<String, Object>();
+ properties.put(PropertyProvider.PROPERTY_PROPERTIES, new String[] {"a", "b", "c"});
+ properties.put(Constants.SERVICE_ID, 1L);
+
+ invoke(service, "bindPropertyProvider", new Class[] {PropertyProvider.class, Map.class}, new Object[] {provider, properties});
+
+ assertEquals(1, events.size());
+ assertEquals(TopologyEvent.Type.PROPERTIES_CHANGED, events.get(0).getType());
+ assertNotNull(events.get(0).getNewView());
+ assertTrue(events.get(0).getNewView().isCurrent());
+ assertNotNull(events.get(0).getOldView());
+ assertFalse(events.get(0).getOldView().isCurrent());
+
+ // test properties
+ assertEquals("1", events.get(0).getNewView().getLocalInstance().getProperty("a"));
+ assertEquals("2", events.get(0).getNewView().getLocalInstance().getProperty("b"));
+ assertEquals("3", events.get(0).getNewView().getLocalInstance().getProperty("c"));
+ assertNull(events.get(0).getOldView().getLocalInstance().getProperty("a"));
+ assertNull(events.get(0).getOldView().getLocalInstance().getProperty("b"));
+ assertNull(events.get(0).getOldView().getLocalInstance().getProperty("c"));
+
+ events.clear();
+ invoke(service, "unbindPropertyProvider", new Class[] {PropertyProvider.class, Map.class}, new Object[] {provider, properties});
+ assertEquals(1, events.size());
+ assertEquals(TopologyEvent.Type.PROPERTIES_CHANGED, events.get(0).getType());
+ assertNotNull(events.get(0).getNewView());
+ assertTrue(events.get(0).getNewView().isCurrent());
+ assertNotNull(events.get(0).getOldView());
+ assertFalse(events.get(0).getOldView().isCurrent());
+
+ assertEquals("1", events.get(0).getOldView().getLocalInstance().getProperty("a"));
+ assertEquals("2", events.get(0).getOldView().getLocalInstance().getProperty("b"));
+ assertEquals("3", events.get(0).getOldView().getLocalInstance().getProperty("c"));
+ assertNull(events.get(0).getNewView().getLocalInstance().getProperty("a"));
+ assertNull(events.get(0).getNewView().getLocalInstance().getProperty("b"));
+ assertNull(events.get(0).getNewView().getLocalInstance().getProperty("c"));
+ }
+}
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-discovery-standalone] 14/14:
[maven-release-plugin] copy for tag
org.apache.sling.discovery.standalone-1.0.2
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit 2ea01ae4ee899df05e74b57f81084a53c97a1481
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Dec 29 13:37:04 2015 +0000
[maven-release-plugin] copy for tag org.apache.sling.discovery.standalone-1.0.2
git-svn-id: https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.discovery.standalone-1.0.2@1722127 13f79535-47bb-0310-9956-ffa450edef68
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-discovery-standalone] 07/14: Remove
inherited dependencies
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit 3754d88cc567d277beb8318403f32b3e20a92e03
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon Apr 27 14:08:35 2015 +0000
Remove inherited dependencies
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone@1676270 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 8 --------
1 file changed, 8 deletions(-)
diff --git a/pom.xml b/pom.xml
index 08a9c70..2c87a3b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -57,14 +57,6 @@
</build>
<dependencies>
<dependency>
- <groupId>org.apache.felix</groupId>
- <artifactId>org.apache.felix.scr.annotations</artifactId>
- </dependency>
- <dependency>
- <groupId>biz.aQute</groupId>
- <artifactId>bndlib</artifactId>
- </dependency>
- <dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-discovery-standalone] 10/14: set parent
version to 24 and add empty relativePath where missing
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit 3d9b0ec1ee4eae1c16fed3801c5b068c12b21c02
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Tue Jul 7 08:09:17 2015 +0000
set parent version to 24 and add empty relativePath where missing
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone@1689593 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 1b9ff2d..738001d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
- <version>23</version>
+ <version>24</version>
<relativePath/>
</parent>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-discovery-standalone] 05/14: Update to
Sling Parent POM 22 with baselining enabled
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit c83e94d90ecc6c6aaf659d68e585d45d243302b6
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Oct 1 06:57:44 2014 +0000
Update to Sling Parent POM 22 with baselining enabled
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone@1628622 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 35f27a7..984b851 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
- <version>20</version>
+ <version>22</version>
<relativePath>../../../parent/pom.xml</relativePath>
</parent>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-discovery-standalone] 06/14: SLING-4505
Relative paths has been set to correct value.
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit 7633ec002d8f75e8e33a4bd48398c67e5714a199
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Mon Mar 16 13:22:00 2015 +0000
SLING-4505 Relative paths has been set to correct value.
Submitted-By: Petr_Shypila <pe...@sap.com>
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone@1666984 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 984b851..08a9c70 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
<version>22</version>
- <relativePath>../../../parent/pom.xml</relativePath>
+ <relativePath>../../../../parent/pom.xml</relativePath>
</parent>
<artifactId>org.apache.sling.discovery.standalone</artifactId>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-discovery-standalone] 03/14: Update to
parent pom v19
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit c2ff4adbbd77766e9f837af74f783b9a9ebe011d
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon Mar 31 14:39:20 2014 +0000
Update to parent pom v19
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone@1583337 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 089c32c..659a105 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
- <version>18</version>
+ <version>19</version>
<relativePath>../../../parent/pom.xml</relativePath>
</parent>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-discovery-standalone] 11/14: Update the
main reactor to parent 25
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit 576d0b4b4589615f0ff33a4951fcbe511e310bba
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Mon Oct 5 10:03:45 2015 +0000
Update the main reactor to parent 25
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone@1706780 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 738001d..c2b7c08 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
- <version>24</version>
+ <version>25</version>
<relativePath/>
</parent>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-discovery-standalone] 13/14:
[maven-release-plugin] prepare release
org.apache.sling.discovery.standalone-1.0.2
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit f7d383b13c7495a6eec37f7e6c78e0eddf811639
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Dec 29 13:36:51 2015 +0000
[maven-release-plugin] prepare release org.apache.sling.discovery.standalone-1.0.2
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone@1722126 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index 7f8f02b..d9caea5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,12 +24,12 @@
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
<version>25</version>
- <relativePath/>
+ <relativePath />
</parent>
<artifactId>org.apache.sling.discovery.standalone</artifactId>
<packaging>bundle</packaging>
- <version>1.0.1-SNAPSHOT</version>
+ <version>1.0.2</version>
<name>Apache Sling Discovery Standalone Implementation</name>
<description>
@@ -37,9 +37,9 @@
</description>
<scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone</developerConnection>
- <url>http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/standalone</url>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.discovery.standalone-1.0.2</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.discovery.standalone-1.0.2</developerConnection>
+ <url>http://svn.apache.org/viewvc/sling/tags/org.apache.sling.discovery.standalone-1.0.2</url>
</scm>
<build>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-discovery-standalone] 01/14:
[maven-release-plugin] prepare for next development iteration
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.standalone-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-standalone.git
commit e44d36836044b3dea8ffc570e080f8ff52949329
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Aug 9 07:04:50 2013 +0000
[maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone@1512178 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 8a4cd68..5d10fa1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
<artifactId>org.apache.sling.discovery.standalone</artifactId>
<packaging>bundle</packaging>
- <version>1.0.0</version>
+ <version>1.0.1-SNAPSHOT</version>
<name>Apache Sling Discovery Standalone Implementation</name>
<description>
@@ -37,9 +37,9 @@
</description>
<scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.discovery.standalone-1.0.0</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.discovery.standalone-1.0.0</developerConnection>
- <url>http://svn.apache.org/viewvc/sling/tags/org.apache.sling.discovery.standalone-1.0.0</url>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/standalone</developerConnection>
+ <url>http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/standalone</url>
</scm>
<build>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.