org.apache.ace.discovery.property
Class PropertyBasedDiscovery

java.lang.Object
  extended by org.apache.ace.discovery.property.PropertyBasedDiscovery
All Implemented Interfaces:
org.apache.ace.discovery.Discovery, org.osgi.service.cm.ManagedService

public class PropertyBasedDiscovery
extends Object
implements org.apache.ace.discovery.Discovery, org.osgi.service.cm.ManagedService

Simple implementation of the Discovery interface. It 'discovers' the Provisioning Server by implementing the ManagedService and having the location configured by ConfigurationAdmin. If no configuration or a null configuration has been supplied by ConfigurationAdmin the location stored in GatewayConstants.DISCOVERY_DEFAULT_URL will be used.


Field Summary
 org.osgi.service.log.LogService m_log
           
 
Constructor Summary
PropertyBasedDiscovery()
           
 
Method Summary
 URL discover()
           
 void updated(Dictionary dictionary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_log

public volatile org.osgi.service.log.LogService m_log
Constructor Detail

PropertyBasedDiscovery

public PropertyBasedDiscovery()
Method Detail

updated

public void updated(Dictionary dictionary)
             throws org.osgi.service.cm.ConfigurationException
Specified by:
updated in interface org.osgi.service.cm.ManagedService
Throws:
org.osgi.service.cm.ConfigurationException

discover

public URL discover()
Specified by:
discover in interface org.apache.ace.discovery.Discovery


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.