You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by pd...@apache.org on 2014/03/18 22:30:53 UTC
svn commit: r1579050 -
/felix/sandbox/pderop/dependencymanager-prototype/dm/src/dm/context/ComponentContext.java
Author: pderop
Date: Tue Mar 18 21:30:52 2014
New Revision: 1579050
URL: http://svn.apache.org/r1579050
Log:
Removed getComponentState(), updateInstance().
Added handleAdded/handleChanged/handleRemoved method.
Added getDependencyEvent method, allowing to get the highest ranked service event for a given dependency context.
Modified:
felix/sandbox/pderop/dependencymanager-prototype/dm/src/dm/context/ComponentContext.java
Modified: felix/sandbox/pderop/dependencymanager-prototype/dm/src/dm/context/ComponentContext.java
URL: http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager-prototype/dm/src/dm/context/ComponentContext.java?rev=1579050&r1=1579049&r2=1579050&view=diff
==============================================================================
--- felix/sandbox/pderop/dependencymanager-prototype/dm/src/dm/context/ComponentContext.java (original)
+++ felix/sandbox/pderop/dependencymanager-prototype/dm/src/dm/context/ComponentContext.java Tue Mar 18 21:30:52 2014
@@ -10,12 +10,13 @@ public interface ComponentContext {
public void start();
public void stop();
public boolean isAvailable();
- public ComponentState getComponentState();
- public void handleChange();
+ public void handleAdded(DependencyContext dc, Event e);
+ public void handleChanged(DependencyContext dc, Event e);
+ public void handleRemoved(DependencyContext dc, Event e);
public List<DependencyContext> getDependencies(); // for testing only...
public void invokeCallbackMethod(Object[] instances, String methodName, Class<?>[][] signatures, Object[][] parameters);
public Object[] getInstances();
- public void updateInstance(DependencyContext dependency);
public String getAutoConfigInstance(Class<?> clazz);
public boolean getAutoConfig(Class<?> clazz);
+ public Event getDependencyEvent(DependencyContext dc);
}