|
What this is
Other links
The source code/* * DepFactory.java * * Created on October 28, 2002, 11:56 AM */ package org.netbeans.tests.j2eeserver.plugin.jsr88; import java.io.*; import java.util.Collection; import java.util.HashSet; import javax.enterprise.deploy.model.*; import javax.enterprise.deploy.shared.*; import javax.enterprise.deploy.spi.*; import javax.enterprise.deploy.spi.exceptions.*; /** * * @author gfink */ public class DepConfig implements DeploymentConfiguration { DeployableObject dobj; DepManager manager; Collection beans = new HashSet(); /** Creates a new instance of DepFactory */ public DepConfig(DeployableObject dobj, DepManager manager) { this.dobj = dobj; this.manager = manager; } public DConfigBeanRoot getDConfigBeanRoot(DDBeanRoot bean) throws ConfigurationException { ModuleType type = bean.getType(); if(type == ModuleType.EAR) { EarConfigBean ret = new EarConfigBean(bean, this); beans.add(ret); return ret; } if(type == ModuleType.EJB) { EjbModuleConfigBean ret = new EjbModuleConfigBean(bean, this); beans.add(ret); return ret; } if(type == ModuleType.WAR) { WebModuleConfigBean ret = new WebModuleConfigBean(bean, this); beans.add(ret); return ret; } return null; } public DeployableObject getDeployableObject() { return dobj; } public void removeDConfigBean(DConfigBeanRoot dConfigBeanRoot) throws BeanNotFoundException { } public void restore(InputStream inputStream) throws ConfigurationException { } public DConfigBeanRoot restoreDConfigBean(InputStream inputStream, DDBeanRoot dDBeanRoot) throws ConfigurationException { throw new ConfigurationException(); } public void save(OutputStream outputStream) throws ConfigurationException { } public void saveDConfigBean(OutputStream outputStream, DConfigBeanRoot dConfigBeanRoot) throws ConfigurationException { } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.