org.jboss.jmx.connector.invoker
Class SerializableInterceptor

java.lang.Object
  extended by org.jboss.mx.interceptor.AbstractInterceptor
      extended by org.jboss.jmx.connector.invoker.SerializableInterceptor
All Implemented Interfaces:
Interceptor

public class SerializableInterceptor
extends AbstractInterceptor

An interceptor that validates the Serializability of responses, using plugable policies.

Version:
$Revision: 85945 $
Author:
Dimitris Andreadis, Fabiano C. de Oliveira

Nested Class Summary
 class SerializableInterceptor.NoopPolicy
          A noop serializable policy
 
Field Summary
 
Fields inherited from class org.jboss.mx.interceptor.AbstractInterceptor
isShared, log, name
 
Constructor Summary
SerializableInterceptor()
           
 
Method Summary
 Object invoke(Invocation invocation)
           
 void setPolicyClass(String policyClass)
          Configure a SerializablePolicy class
 
Methods inherited from class org.jboss.mx.interceptor.AbstractInterceptor
destroy, getName, init, isShared, setLogger, setName, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializableInterceptor

public SerializableInterceptor()
Method Detail

setPolicyClass

public void setPolicyClass(String policyClass)
                    throws Exception
Configure a SerializablePolicy class

Throws:
Exception

invoke

public Object invoke(Invocation invocation)
              throws Throwable
Specified by:
invoke in interface Interceptor
Overrides:
invoke in class AbstractInterceptor
Throws:
Throwable


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.