org.apache.felix.dm.test.bundle.annotation.resource
Class ResourceProvider

java.lang.Object
  extended by org.apache.felix.dm.test.bundle.annotation.resource.ResourceProvider

public class ResourceProvider
extends Object

Provides some simple resources.


Constructor Summary
ResourceProvider()
           
 
Method Summary
 void add(Map serviceProperties, ResourceHandler handler)
          Handles a new Resource consumer
 void destroy()
          Our component is being destroyed: notify all our registered Resource consumers that we don't provide our Resources anymore.
 void remove(ResourceHandler handler)
          Remove a Resource consumer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceProvider

public ResourceProvider()
                 throws Exception
Throws:
Exception
Method Detail

add

public void add(Map serviceProperties,
                ResourceHandler handler)
Handles a new Resource consumer

Parameters:
serviceProperties -
handler -

remove

public void remove(ResourceHandler handler)
Remove a Resource consumer.

Parameters:
handler -

destroy

public void destroy()
Our component is being destroyed: notify all our registered Resource consumers that we don't provide our Resources anymore.



Copyright © 2013 The Apache Software Foundation. All Rights Reserved.