Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.ejb3.timerservice.jboss;
 /*    */ 
 /*    */ import java.io.Serializable;
 /*    */ import java.util.Collection;
 /*    */ import java.util.Date;
 /*    */ import javax.ejb.EJBException;
 /*    */ import javax.ejb.Timer;
 /*    */ import javax.ejb.TimerService;
 /*    */ import javax.management.ObjectName;
/*    */ import org.jboss.ejb3.Container;
/*    */ import org.jboss.ejb3.EJBContainer;
/*    */ 
/*    */ public class TimerServiceFacade
/*    */   implements TimerService
/*    */ {
/*    */   private TimerService delegate;
/*    */   private Container container;
/*    */ 
/*    */   protected TimerServiceFacade(Container containerTimerService delegate)
/*    */   {
/* 50 */     this.container = container;
/* 51 */     this.delegate = delegate;
/*    */   }
/*    */ 
/*    */   public Timer createTimer(Date initialExpirationlong intervalDurationSerializable infothrows IllegalArgumentExceptionIllegalStateExceptionEJBException
/*    */   {
/* 56 */     return this.delegate.createTimer(initialExpiration, intervalDuration, info);
/*    */   }
/*    */ 
/*    */   public Timer createTimer(Date expirationSerializable infothrows IllegalArgumentExceptionIllegalStateExceptionEJBException
/*    */   {
/* 61 */     return this.delegate.createTimer(expiration, info);
/*    */   }
/*    */ 
/*    */   public Timer createTimer(long initialDurationlong intervalDurationSerializable infothrows IllegalArgumentExceptionIllegalStateExceptionEJBException
/*    */   {
/* 66 */     return this.delegate.createTimer(initialDuration, intervalDuration, info);
/*    */   }
/*    */ 
/*    */   public Timer createTimer(long durationSerializable infothrows IllegalArgumentExceptionIllegalStateExceptionEJBException
/*    */   {
/* 71 */     return this.delegate.createTimer(duration, info);
/*    */   }
/*    */ 
/*    */   protected EJBContainer getContainer()
/*    */   {
/* 76 */     return (EJBContainer)this.container;
/*    */   }
/*    */ 
/*    */   protected ObjectName getContainerId()
/*    */   {
/* 81 */     return this.container.getObjectName();
/*    */   }
/*    */ 
/*    */   public Collection getTimers() throws IllegalStateExceptionEJBException
/*    */   {
/* 86 */     return this.delegate.getTimers();
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.ejb3.timerservice.jboss.TimerServiceFacade
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X