Package org.jboss.kernel.plugins.deployment.xml

Source Code of org.jboss.kernel.plugins.deployment.xml.LifecycleDestroyInterceptor

/*    */ package org.jboss.kernel.plugins.deployment.xml;
/*    */
/*    */ import javax.xml.namespace.QName;
/*    */ import org.jboss.beans.metadata.plugins.AbstractLifecycleMetaData;
/*    */ import org.jboss.beans.metadata.plugins.MutableLifecycleHolder;
/*    */ import org.jboss.xb.binding.sunday.unmarshalling.DefaultElementInterceptor;
/*    */
/*    */ public class LifecycleDestroyInterceptor extends DefaultElementInterceptor
/*    */ {
/* 38 */   public static final LifecycleDestroyInterceptor INTERCEPTOR = new LifecycleDestroyInterceptor();
/*    */
/*    */   public void add(Object parent, Object child, QName name)
/*    */   {
/* 42 */     MutableLifecycleHolder holder = (MutableLifecycleHolder)parent;
/* 43 */     AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)child;
/* 44 */     lifecycle.setType("destroy");
/* 45 */     holder.setDestroy(lifecycle);
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.kernel.plugins.deployment.xml.LifecycleDestroyInterceptor
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.kernel.plugins.deployment.xml.LifecycleDestroyInterceptor

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.