org.jboss.forge.addon.projects.ProjectFactory Java Examples

The following examples show how to use org.jboss.forge.addon.projects.ProjectFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConfigureComponentPropertiesStep.java    From fabric8-forge with Apache License 2.0 6 votes vote down vote up
public ConfigureComponentPropertiesStep(ProjectFactory projectFactory,
                                        DependencyInstaller dependencyInstaller,
                                        CamelCatalog camelCatalog,
                                        String componentName, String group,
                                        List<InputComponent> allInputs,
                                        List<InputComponent> inputs,
                                        boolean last, int index, int total) {
    this.projectFactory = projectFactory;
    this.dependencyInstaller = dependencyInstaller;
    this.camelCatalog = camelCatalog;
    this.componentName = componentName;
    this.group = group;
    this.allInputs = allInputs;
    this.inputs = inputs;
    this.last = last;
    // we want to 1-based
    this.index = index + 1;
    this.total = total;
}
 
Example #2
Source File: ConfigureEndpointPropertiesStep.java    From fabric8-forge with Apache License 2.0 6 votes vote down vote up
public ConfigureEndpointPropertiesStep(ProjectFactory projectFactory,
                                       DependencyInstaller dependencyInstaller,
                                       CamelCatalog camelCatalog,
                                       String componentName, String group,
                                       List<InputComponent> allInputs,
                                       List<InputComponent> inputs,
                                       boolean last, int index, int total) {
    this.projectFactory = projectFactory;
    this.dependencyInstaller = dependencyInstaller;
    this.camelCatalog = camelCatalog;
    this.componentName = componentName;
    this.group = group;
    this.allInputs = allInputs;
    this.inputs = inputs;
    this.last = last;
    // we want to 1-based
    this.index = index + 1;
    this.total = total;
}
 
Example #3
Source File: ConfigureEipPropertiesStep.java    From fabric8-forge with Apache License 2.0 6 votes vote down vote up
public ConfigureEipPropertiesStep(ProjectFactory projectFactory,
                                  CamelCatalog camelCatalog,
                                  String eipName, String group,
                                  List<InputComponent> allInputs,
                                  List<InputComponent> inputs,
                                  boolean last, int index, int total) {
    this.projectFactory = projectFactory;
    this.camelCatalog = camelCatalog;
    this.eipName = eipName;
    this.group = group;
    this.allInputs = allInputs;
    this.inputs = inputs;
    this.last = last;
    // we want to 1-based
    this.index = index + 1;
    this.total = total;
}
 
Example #4
Source File: CreateTestClassCommandTest.java    From thorntail-addon with Eclipse Public License 1.0 5 votes vote down vote up
@Before
public void setUp()
{
   AddonRegistry addonRegistry = Furnace.instance(getClass().getClassLoader()).getAddonRegistry();
   projectFactory = addonRegistry.getServices(ProjectFactory.class).get();
   uiTestHarness = addonRegistry.getServices(UITestHarness.class).get();
   shellTest = addonRegistry.getServices(ShellTest.class).get();
   project = projectFactory.createTempProject(Arrays.asList(JavaSourceFacet.class, ThorntailFacet.class));
}
 
Example #5
Source File: SetupCommandTest.java    From thorntail-addon with Eclipse Public License 1.0 5 votes vote down vote up
@Before
public void setUp() throws Exception
{
   AddonRegistry addonRegistry = Furnace.instance(getClass().getClassLoader()).getAddonRegistry();
   projectFactory = addonRegistry.getServices(ProjectFactory.class).get();
   uiTestHarness = addonRegistry.getServices(UITestHarness.class).get();
   shellTest = addonRegistry.getServices(ShellTest.class).get();
   project = projectFactory.createTempProject();
}
 
Example #6
Source File: CamelProjectAddComponentStep.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
public CamelProjectAddComponentStep(UISelectOne<String> filter, UISelectOne<ComponentDto> componentName, ProjectFactory projectFactory,
                                    DependencyInstaller dependencyInstaller, CamelCatalog camelCatalog) {
    this.filter = filter;
    this.componentName = componentName;
    this.projectFactory = projectFactory;
    this.dependencyInstaller = dependencyInstaller;
    this.camelCatalog = camelCatalog;
}
 
Example #7
Source File: AddRouteFromEndpointXmlStep.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
public AddRouteFromEndpointXmlStep(ProjectFactory projectFactory, DependencyInstaller dependencyInstaller, CamelCatalog camelCatalog, String componentName, String group, List<InputComponent> allInputs, List<InputComponent> inputs,
                                   boolean last, int index, int total, String routeId) {
    super(projectFactory, dependencyInstaller, camelCatalog, componentName, group, allInputs, inputs, last, index, total);
    this.routeId = routeId;
}
 
Example #8
Source File: AbstractThorntailCommand.java    From thorntail-addon with Eclipse Public License 1.0 4 votes vote down vote up
@Override
protected ProjectFactory getProjectFactory()
{
    return SimpleContainer.getServices(getClass().getClassLoader(), ProjectFactory.class).get();
}
 
Example #9
Source File: AbstractIntrospectionCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
protected ProjectFactory getProjectFactory() { return projectFactory; }
 
Example #10
Source File: AbstractJolokiaCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
protected ProjectFactory getProjectFactory() {
    return projectFactory;
}
 
Example #11
Source File: AddNodeXmlStep.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
public AddNodeXmlStep(ProjectFactory projectFactory, CamelCatalog camelCatalog, String eipName, String group, List<InputComponent> allInputs, List<InputComponent> inputs,
                      boolean last, int index, int total) {
    super(projectFactory, camelCatalog, eipName, group, allInputs, inputs, last, index, total);
}
 
Example #12
Source File: EditFromOrToEndpointXmlStep.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
public EditFromOrToEndpointXmlStep(ProjectFactory projectFactory, DependencyInstaller dependencyInstaller, CamelCatalog camelCatalog, String componentName, String group, List<InputComponent> allInputs, List<InputComponent> inputs,
                                   boolean last, int index, int total, NodeDto parentNode, boolean isFrom) {
    super(projectFactory, dependencyInstaller, camelCatalog, componentName, group, allInputs, inputs, last, index, total);
    this.parentNode = parentNode;
    this.isFrom = isFrom;
}
 
Example #13
Source File: AbstractFunktionCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
protected ProjectFactory getProjectFactory() {
    return projectFactory;
}
 
Example #14
Source File: AbstractCamelProjectCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
protected ProjectFactory getProjectFactory() {
    return projectFactory;
}
 
Example #15
Source File: AddFromOrToEndpointXmlStep.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
public AddFromOrToEndpointXmlStep(ProjectFactory projectFactory, DependencyInstaller dependencyInstaller, CamelCatalog camelCatalog, String componentName, String group, List<InputComponent> allInputs, List<InputComponent> inputs,
                                  boolean last, int index, int total, NodeDto parentNode, boolean isFrom) {
    super(projectFactory, dependencyInstaller, camelCatalog, componentName, group, allInputs, inputs, last, index, total);
    this.parentNode = parentNode;
    this.isFrom = isFrom;
}
 
Example #16
Source File: EditNodeXmlStep.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
public EditNodeXmlStep(ProjectFactory projectFactory, CamelCatalog camelCatalog, String eipName, String group, List<InputComponent> allInputs, List<InputComponent> inputs,
                       boolean last, int index, int total) {
    super(projectFactory, camelCatalog, eipName, group, allInputs, inputs, last, index, total);
}
 
Example #17
Source File: AbstractKubernetesCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
protected ProjectFactory getProjectFactory() {
    return projectFactory;
}
 
Example #18
Source File: AbstractDevOpsCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
protected ProjectFactory getProjectFactory() {
    return projectFactory;
}
 
Example #19
Source File: AbstractFabricProjectCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
protected ProjectFactory getProjectFactory() {
    return projectFactory;
}