Package javax.enterprise.deploy.shared

Examples of javax.enterprise.deploy.shared.ModuleType


     * Test running modules.
     */
    public void testRunningModules() {
       
        try {
            ModuleType moduleType = ModuleType.WAR;
            Target[] targets = { new MyTarget("target") };

            TargetModuleID[] targetModuleIds = {
                new MyTargetModuleID("test", null, null),
                new MyTargetModuleID("artifact", null, null),
View Full Code Here


     * Test running modules.
     */
    public void testRunningAndNonRunningModules() {
       
        try {
            ModuleType moduleType = ModuleType.WAR;
            Target[] targets = { new MyTarget("target") };

            TargetModuleID[] targetModuleId1 = {
                new MyTargetModuleID("test", null, null),
                new MyTargetModuleID("artifact", null, null),
View Full Code Here

     * Test get modules.
     */
    public void testGetModules() {
       
        try {
            ModuleType moduleType = ModuleType.WAR;
            Target[] targets = { new MyTarget("target") };
            TargetModuleID[] targetModuleIds = {
                new MyTargetModuleID("test", null, null),
                new MyTargetModuleID("artifact", null, null),
                new MyTargetModuleID("other", null, null)
View Full Code Here

     *
     * @throws TargetException is throw when cannot find target
     */
    public void testNonRunningModules() throws TargetException {
       
        ModuleType moduleType = ModuleType.WAR;
        Target[] targets = { new MyTarget("target") };

        TargetModuleID[] targetModuleIds = {
            new MyTargetModuleID("test", null, null),
            new MyTargetModuleID("artifact", null, null),
View Full Code Here

     * @throws TargetException is throw when cannot find target
     */
    @Test
    public void testRunningModules() throws TargetException {
       
        ModuleType moduleType = ModuleType.WAR;
        Target[] targets = { new MyTarget("target") };

        TargetModuleID[] targetModuleIds = {
            new MyTargetModuleID("test", null, null),
            new MyTargetModuleID("artifact", null, null),
View Full Code Here

     * @throws TargetException is throw when cannot find target
     */
    @Test
    public void testRunningAndNonRunningModules() throws TargetException{
       
        ModuleType moduleType = ModuleType.WAR;
        Target[] targets = { new MyTarget("target") };

        TargetModuleID[] targetModuleId1 = {
            new MyTargetModuleID("test", null, null),
            new MyTargetModuleID("artifact", null, null),
View Full Code Here

     * @throws TargetException is throw when cannot find target
     */
    @Test
    public void testGetModules() throws TargetException {
       
        ModuleType moduleType = ModuleType.WAR;
        Target[] targets = { new MyTarget("target") };
        TargetModuleID[] targetModuleIds = {
            new MyTargetModuleID("test", null, null),
            new MyTargetModuleID("artifact", null, null),
            new MyTargetModuleID("other", null, null)
View Full Code Here

                WebModulesManager webModulesManager = new WebModulesManager(
                    ApplicationServer.getServerContext().getInstanceEnvironment());
          Application app = webModulesManager.getDescriptor(wmID, location);     
                wbd = (WebBundleDescriptor) app.getStandaloneBundleDescriptor();
            } else if ( configBean instanceof ExtensionModule) {
                ModuleType mType = XModuleType.getModuleType(
                            ((ExtensionModule)configBean).getModuleType());
                ExtensionModuleConfigManager extnModulesManager =
                        PluggableDeploymentInfo.getExtensionModuleDeployer(
                                                 mType).getConfigManager();
          Application app =
View Full Code Here

                        next.setWsdlFileUrl((new File(next.getWsdlFileUri())).toURL());
                    } else {
                        // Relative WSDL file paths prefixed with module dir
                        BaseManager mgr=null;
                        if(next.getBundleDescriptor().getApplication().isVirtual()) {
                            ModuleType mType = next.getBundleDescriptor().getModuleType();
                            if(mType.equals(ModuleType.WAR)) {
                                mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.WEB);
                            } else if(mType.equals(ModuleType.EAR)) {
                                mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.APP);
                            } else if(mType.equals(ModuleType.EJB)) {
                                mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.EJB);
                            } else if(mType.equals(ModuleType.CAR)) {
                                mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.CAR);
                            }
                            String deployedDir =
                                mgr.getLocation(next.getBundleDescriptor().getApplication().getRegistrationName());
                            if(deployedDir != null) {
View Full Code Here

                                 boolean useDOLforDeployment,
                                 WebBundleDescriptor wbd) {

        File configFile = new File(location, Constants.WEB_CONTEXT_XML);

        ModuleType mType = ((wbd != null) ? wbd.getModuleType() : ModuleType.WAR);
        String contextClassName = PluggableContextInfo.getContext(mType.toString());
        WebModule context = null;
        try {
            Class contextClass = Class.forName(contextClassName);
            Constructor ctor = contextClass.getConstructor(
                new Class[]{com.sun.enterprise.web.WebContainer.class});
            context = (WebModule)ctor.newInstance(new Object[]{webContainer});
        } catch (Throwable t) {
            _logger.log(Level.SEVERE, "Unable to create context", t);
            return null;
        }

        context.setDebug(debug);
        context.setPath(ctxPath);
        context.setDocBase(location);
        context.setCrossContext(true);
        context.setUseNaming(isUseNaming());
        context.setHasWebXml(wbd == null ? false : true);
        context.setWebBundleDescriptor(wbd);
        context.setManagerChecksFrequency(1);

        if (configFile.exists()) {
            context.setConfigFile(configFile.getAbsolutePath());
        }

        String contextConfig = PluggableContextInfo.getContextConfig(mType.toString());
        ContextConfig config = null;
        if (useDOLforDeployment) {
            try {
                Class configClass = Class.forName(contextConfig);
                config = (WebModuleContextConfig)configClass.newInstance();
View Full Code Here

TOP

Related Classes of javax.enterprise.deploy.shared.ModuleType

Copyright © 2018 www.massapicom. 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.