56 lines
1.7 KiB
Java
56 lines
1.7 KiB
Java
/*
|
|
* SEPluginProjectProperties.java
|
|
*/
|
|
package net.openesb.component.${artifactId}.project;
|
|
|
|
import java.io.IOException;
|
|
import org.netbeans.api.project.Project;
|
|
import org.netbeans.spi.project.support.ant.AntBasedProjectType;
|
|
import org.netbeans.spi.project.support.ant.AntProjectHelper;
|
|
|
|
/**
|
|
* Factory for simple service engine deployment plugin project projects.
|
|
*
|
|
* @author chikkala
|
|
*/
|
|
public final class SEPluginProjectType implements AntBasedProjectType {
|
|
|
|
/**
|
|
*/
|
|
public static final String TYPE = "serviceengine.project.type"; // NOI18N
|
|
/**
|
|
*/
|
|
public static final String PROJECT_CONFIGURATION_NAMESPACE = "http://www.netbeans.org/ns/jbimodules/paramv4seplugin/1"; // NOI18N
|
|
/**
|
|
*/
|
|
public static final String PROJECT_CONFIGURATION_NAME = "data"; // NOI18N
|
|
/**
|
|
*/
|
|
public static final String PRIVATE_CONFIGURATION_NAME = "data"; // NOI18N
|
|
/**
|
|
*/
|
|
public static final String PRIVATE_CONFIGURATION_NAMESPACE = "http://www.netbeans.org/ns/jbimodules/paramv4seplugin/private/1"; // NOI18N
|
|
|
|
/**
|
|
* Do nothing, just a service.
|
|
*/
|
|
public SEPluginProjectType() {
|
|
}
|
|
|
|
public String getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public Project createProject(AntProjectHelper helper) throws IOException {
|
|
return new SEPluginProject(helper);
|
|
}
|
|
|
|
public String getPrimaryConfigurationDataElementName(boolean shared) {
|
|
return shared ? PROJECT_CONFIGURATION_NAME : PRIVATE_CONFIGURATION_NAME;
|
|
}
|
|
|
|
public String getPrimaryConfigurationDataElementNamespace(boolean shared) {
|
|
return shared ? PROJECT_CONFIGURATION_NAMESPACE : PRIVATE_CONFIGURATION_NAMESPACE;
|
|
}
|
|
}
|