org.apache.felix.ipojo.handlers.dependency
Class NullableObject

java.lang.Object
  extended by org.apache.felix.ipojo.handlers.dependency.NullableObject
All Implemented Interfaces:
InvocationHandler

public class NullableObject
extends Object
implements InvocationHandler

Default nullable object.

Author:
Felix Project Team

Constructor Summary
NullableObject()
           
 
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

NullableObject

public NullableObject()
Method Detail

invoke

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

Specified by:
invoke in interface InvocationHandler
Parameters:
proxy - : proxy object
method - : invoked method
args - : arguments.
Returns:
the returned value.
See Also:
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])


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