站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 jmx API Documentation 英文版文档

PersistenceInterceptor (JBoss/JMX API) - JBoss 3.2.7 jmx API Documentation 英文版文档


org.jboss.mx.interceptor
Class PersistenceInterceptor

java.lang.Object
  extended byorg.jboss.mx.interceptor.AbstractInterceptor
      extended byorg.jboss.mx.interceptor.PersistenceInterceptor
All Implemented Interfaces:
Interceptor, ModelMBeanConstants, ServiceConstants
Direct Known Subclasses:
PersistenceInterceptor2

public class PersistenceInterceptor
extends AbstractInterceptor
implements ModelMBeanConstants, ServiceConstants

A peristence interceptor that uses the java.util.Timer framework for the scheculed peristence policies.

Version:
$Revision: 1.2.8.9 $
Author:
Scott.Stark@jboss.org, Dimitris Andreadis.
See Also:
PersistentMBean

Field Summary
 
Fields inherited from class org.jboss.mx.interceptor.AbstractInterceptor
isShared, log, name
 
Fields inherited from interface org.jboss.mx.modelmbean.ModelMBeanConstants
ACTION, ACTION_INFO, ALL_DESCRIPTORS, ATTRIBUTE_DESCRIPTOR, CACHE_ALWAYS, CACHE_NEVER, CONSTRUCTOR, CONSTRUCTOR_DESCRIPTOR, CURRENCY_TIME_LIMIT, DEFAULT, DELEGATING_PM_OPERATION_DEFAULT_VALUE, DELEGATING_PM_OPERATION_DESCRIPTOR, DELEGATING_PM_SERVICE_DEFAULT_VALUE, DELEGATING_PM_SERVICE_DESCRIPTOR, DESCRIPTOR_TYPE, DISPLAY_NAME, EXPORT, GENERIC_MODELMBEAN_NOTIFICATION, GET_METHOD, GETTER, HIGH_VISIBILITY, INFO, INTERCEPTORS, IS_IS, IS_READABLE, IS_WRITABLE, LAST_RETURNED_TIME_STAMP, LAST_UPDATED_TIME_STAMP, LOG, LOW_VISIBILITY, MBEAN_DESCRIPTOR, MBEAN_INFO_INJECTION_TYPE, MBEAN_SERVER_INJECTION_TYPE, MINIMAL_VISIBILITY, NAME, NORMAL_VISIBILITY, NOTIFICATION_DESCRIPTOR, OBJECT_NAME, OBJECT_NAME_INJECTION_TYPE, OBJECT_REF, OPERATION_DESCRIPTOR, PERSIST_INFO, PERSIST_LOCATION, PERSIST_NAME, PERSIST_PERIOD, PERSIST_POLICY, PERSISTENCE_MANAGER, PM_NEVER, PM_NO_MORE_OFTEN_THAN, PM_ON_TIMER, PM_ON_UPDATE, RESOURCE_CLASS, ROLE, SET_METHOD, SETTER, SEVERITY, VALUE, VISIBILITY
 
Fields inherited from interface org.jboss.mx.service.ServiceConstants
JBOSSMX_DOMAIN, JBOSSMX_XMBEAN_DTD_1_0, JBOSSMX_XMBEAN_DTD_1_1, MBEAN_LOADER_DTD_1_0, PERSISTENCE_TIMER, PUBLIC_JBOSSMX_XMBEAN_DTD_1_0, PUBLIC_JBOSSMX_XMBEAN_DTD_1_1, XMBEAN_DTD
 
Constructor Summary
PersistenceInterceptor()
           
 
Method Summary
 Object invoke(Invocation invocation)
          The default invoke implementation queries the invocation object for the next interceptor in the chain.
 
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

PersistenceInterceptor

public PersistenceInterceptor()
Method Detail

invoke

public Object invoke(Invocation invocation)
              throws InvocationException
Description copied from class: AbstractInterceptor
The default invoke implementation queries the invocation object for the next interceptor in the chain. If one exists, it is invoked. Otherwise the invocation is dispatched to the target object.

Concrete implementations should override this method to implement their specific application logic.

Specified by:
invoke in interface Interceptor
Overrides:
invoke in class AbstractInterceptor
Parameters:
invocation - the invocation object send towards the target resource by the invoker
Returns:
return value from the target resource
Throws:
InvocationException - This exception wraps any exceptions thrown by either the target method of the resource object, or invocation interceptors in this interceptor chain. The target exception is unwrapped at the MBeanInvoker instance.
See Also:
Invocation, MBeanInvoker


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.