|
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 javax.enterprise.deploy.spi.factories.DeploymentFactory; import javax.enterprise.deploy.spi.*; import javax.enterprise.deploy.spi.exceptions.*; /** * * @author gfink */ public class DepFactory implements DeploymentFactory { java.util.Map managers = new java.util.HashMap(); /** Creates a new instance of DepFactory */ public DepFactory() { } public javax.enterprise.deploy.spi.DeploymentManager getDeploymentManager(String str, String str1, String str2) throws javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException { DepManager manager = (DepManager) managers.get(str); if (manager == null){ manager = new DepManager(str, str1, str2); managers.put(str, manager); } return manager; } public javax.enterprise.deploy.spi.DeploymentManager getDisconnectedDeploymentManager(String str) throws javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException { DepManager manager = (DepManager) managers.get(str); if (manager == null) { manager = new DepManager(str,"",""); managers.put(str, manager); } return manager; } public String getDisplayName() { return "Sample JSR88 plugin";// PENDING parameterize this. } public String getProductVersion() { return "0.9";// PENDING version this plugin somehow? } public boolean handlesURI(String str) { return (str != null && str.startsWith("fooservice")); } } |
... 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.