org.apache.aries.proxy.weavinghook
Interface ProxyWeavingController


public interface ProxyWeavingController

Services of this interface are used by the ProxyManager's weaving implementation to decide if a specific bundle should be subject to weaving.

If multiple ProxyWeavingController are registered all will be consulted to decide whether to weave or not. As soon as one service says to weave a class then it will be woven and following services may not be consulted.


Method Summary
 boolean shouldWeave(org.osgi.framework.hooks.weaving.WovenClass classToWeave, WeavingHelper helper)
          Returns true if the class should be subject to proxy weaving.
 

Method Detail

shouldWeave

boolean shouldWeave(org.osgi.framework.hooks.weaving.WovenClass classToWeave,
                    WeavingHelper helper)
Returns true if the class should be subject to proxy weaving. If it returns false then the class will not be weaved. The result of this method is immutable for a given bundle. That means repeated calls given the same bundle MUST return the same response.

Parameters:
classToWeave - the class that is a candidate to be weaved.
helper - a helper calss to allow the implementation to make intelligent weaving decisions.
Returns:
true if it should be woven, false otherwise.


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