Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.ejb3.service;
 /*    */ 
 /*    */ import java.lang.reflect.Constructor;
 /*    */ import java.util.Arrays;
 /*    */ import java.util.HashSet;
 /*    */ import java.util.Set;
 /*    */ import org.jboss.ejb3.JBossProxy;
 /*    */ import org.jboss.ejb3.ProxyFactoryHelper;
/*    */ 
/*    */ public class ServiceLocalProxyFactory extends BaseServiceProxyFactory
/*    */ {
/*    */   protected ServiceLocalProxyFactory(ServiceContainer containerLocalBinding binding)
/*    */   {
/* 42 */     super(container, binding.jndiBinding());
/*    */   }
/*    */ 
/*    */   protected Class<?>[] getInterfaces()
/*    */   {
/* 48 */     Set uniqueInterfaces = new HashSet();
/*    */ 
/* 51 */     uniqueInterfaces.addAll(Arrays.asList(ProxyFactoryHelper.getLocalAndBusinessLocalInterfaces(this.container)));
/*    */ 
/* 54 */     uniqueInterfaces.add(JBossProxy.class);
/*    */ 
/* 57 */     return (Class[])uniqueInterfaces.toArray(new Class[0]);
/*    */   }
/*    */ 
/*    */   public Object createProxy()
/*    */   {
/*    */     try
/*    */     {
/* 64 */       Object[] args = { new ServiceLocalProxy(this.container) };
/* 65 */       return this.proxyConstructor.newInstance(args);
/*    */     }
/*    */     catch (InstantiationException e)
/*    */     {
/* 69 */       throw new RuntimeException(e);
/*    */     }
/*    */     catch (IllegalAccessException e)
/*    */     {
/* 73 */       throw new RuntimeException(e);
/*    */     }
/*    */     catch (IllegalArgumentException e)
/*    */     {
/* 77 */       throw new RuntimeException(e);
/*    */     }
/*    */     catch (InvocationTargetException e) {
/*    */     }
/* 81 */     throw new RuntimeException(e.getTargetException());
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.ejb3.service.ServiceLocalProxyFactory
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X