1 23 package com.sun.enterprise.deployment.annotation.context; 24 25 import java.util.List ; 26 import java.util.ArrayList ; 27 28 import com.sun.enterprise.deployment.ApplicationClientDescriptor; 29 import com.sun.enterprise.deployment.types.HandlerChainContainer; 30 import com.sun.enterprise.deployment.ServiceReferenceDescriptor; 31 32 37 public class AppClientContext extends ResourceContainerContextImpl { 38 public AppClientContext(ApplicationClientDescriptor appClientDescriptor) { 39 super(appClientDescriptor); 40 componentClassName = appClientDescriptor.getMainClassName(); 41 } 42 43 public ApplicationClientDescriptor getDescriptor() { 44 return (ApplicationClientDescriptor)descriptor; 45 } 46 47 public HandlerChainContainer[] 48 getHandlerChainContainers(boolean serviceSideHandlerChain, Class declaringClass) { 49 if(serviceSideHandlerChain) { 50 return null; 52 } else { 53 List <ServiceReferenceDescriptor> result = new ArrayList <ServiceReferenceDescriptor>(); 54 result.addAll(getDescriptor().getServiceReferenceDescriptors()); 55 return(result.toArray(new HandlerChainContainer[0])); 56 } 57 } 58 } 59 | Popular Tags |