org.apache.felix.dependencymanager
Class DefaultNullObject
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultNullObject
public DefaultNullObject()
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.