Interface ProjectInitializer
public interface ProjectInitializer
The initializers will be called when a project is initializing, this enables different kind of components to setup its own natures
A nature describes a set of orthogonal capabilities that are going to be attached to the project. For example a nature called maven will contribute with
all the components related to maven (project structure, dependency management, label, name of the project). Other natures like connectivity or mule
can contribute with other capabilities such as indexers, custom commands and so.
-
Method Summary
Modifier and TypeMethodDescriptiongetKind()org.mule.dx.platform.api.project.ProjectDescriptorinitialize(ProjectMetadata projectMetadata, org.mule.dx.platform.api.project.ProjectDescriptorBuilder builder) Initialize the project is being called to set up the projectbooleansupports(ProjectMetadata projectMetadata) If returns true
-
Method Details
-
supports
If returns true- Parameters:
projectMetadata- The projectMetadata contains basic information about the project- Returns:
- if true the `initialize` will be called
-
initialize
org.mule.dx.platform.api.project.ProjectDescriptor initialize(ProjectMetadata projectMetadata, org.mule.dx.platform.api.project.ProjectDescriptorBuilder builder) Initialize the project is being called to set up the project- Parameters:
projectMetadata- The projectMetadata contains basic information about the projectbuilder- The builder to contribute to- Returns:
- The ProjectDescriptor bing built
-
getKind
String getKind()- Returns:
- the project kind name in lowercase
-