org.fcrepo.server.messaging
Class NotificationInvocationHandler

java.lang.Object
  extended by org.fcrepo.server.proxy.AbstractInvocationHandler
      extended by org.fcrepo.server.messaging.NotificationInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class NotificationInvocationHandler
extends AbstractInvocationHandler

A InvocationHandler responsible for sending notifications via Messaging.

Version:
$Id$
Author:
Edwin Shin

Field Summary
 
Fields inherited from class org.fcrepo.server.proxy.AbstractInvocationHandler
target
 
Constructor Summary
NotificationInvocationHandler()
          Note: Setting of messaging does not take place in this constructor because the construction of the Management proxy chain (of which this class is intended to be a part) takes place in ManagementModule.postInit(), i.e., prior to completion of Server initialization.
NotificationInvocationHandler(Messaging messaging)
          This constructor is intended for testing.
 
Method Summary
 void close()
           
 Object invoke(Object proxy, Method method, Object[] args)
          
 
Methods inherited from class org.fcrepo.server.proxy.AbstractInvocationHandler
setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationInvocationHandler

public NotificationInvocationHandler()
Note: Setting of messaging does not take place in this constructor because the construction of the Management proxy chain (of which this class is intended to be a part) takes place in ManagementModule.postInit(), i.e., prior to completion of Server initialization.


NotificationInvocationHandler

public NotificationInvocationHandler(Messaging messaging)
This constructor is intended for testing.

Parameters:
messaging -
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable

Throws:
Throwable

close

public void close()
Overrides:
close in class AbstractInvocationHandler


Copyright © 2011 DuraSpace. All Rights Reserved.