org.apache.felix.dependencymanager
Class DefaultNullObject

java.lang.Object
  extended by org.apache.felix.dependencymanager.DefaultNullObject
All Implemented Interfaces:
InvocationHandler

public final class DefaultNullObject
extends Object
implements InvocationHandler

Default null object implementation. Uses a dynamic proxy. Null objects are used as placeholders for services that are not available.

Author:
Felix Project Team

Constructor Summary
DefaultNullObject()
           
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
          Invokes a method on this null object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNullObject

public DefaultNullObject()
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Invokes a method on this null object. The method will return a default value without doing anything.

Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.