FileDocCategorySizeDatePackage
AnnotatedElementHandlerFactory.javaAPI DocGlassfish v2 API3604Fri May 04 22:31:32 BST 2007com.sun.enterprise.deployment.annotation.factory

AnnotatedElementHandlerFactory

public class AnnotatedElementHandlerFactory extends Object
The Factory is reponsible for creating AnnotatedElementHandler.
author
Shing Wai Chan

Fields Summary
Constructors Summary
private AnnotatedElementHandlerFactory()

    
Methods Summary
public static com.sun.enterprise.deployment.annotation.AnnotatedElementHandlercreateAnnotatedElementHandler(com.sun.enterprise.deployment.BundleDescriptor bundleDesc)

        AnnotatedElementHandler aeHandler = null;
        if (bundleDesc instanceof EjbBundleDescriptor) {
            EjbBundleDescriptor ejbBundleDesc = (EjbBundleDescriptor)bundleDesc;
            aeHandler = new EjbBundleContext(ejbBundleDesc);
        } else if (bundleDesc instanceof ApplicationClientDescriptor) {
            ApplicationClientDescriptor appClientDesc =
                    (ApplicationClientDescriptor)bundleDesc;
            aeHandler = new AppClientContext(appClientDesc);
        } else if (bundleDesc instanceof WebBundleDescriptor) {
            WebBundleDescriptor webBundleDesc = (WebBundleDescriptor)bundleDesc;
            aeHandler = new WebBundleContext(webBundleDesc);
        }

        return aeHandler;