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, ModuleConfiguredInvocationHandler

public class NotificationInvocationHandler
extends AbstractInvocationHandler
implements ModuleConfiguredInvocationHandler

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()
           
 void init(Server server)
           
 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

init

public void init(Server server)
Specified by:
init in interface ModuleConfiguredInvocationHandler

invoke

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

Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

close

public void close()
Overrides:
close in class AbstractInvocationHandler


Copyright © 2012 DuraSpace. All Rights Reserved.