From d03ae071f51d8d4fb89cae1582f4499e7b10e579 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Sat, 6 May 2006 00:34:42 +0000 Subject: [PATCH] Use the standard coding conventions. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@400220 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/embedder/ContainerCustomizer.java | 9 ++- .../embedder/DefaultMavenEmbedRequest.java | 67 ++++++++++++------- 2 files changed, 50 insertions(+), 26 deletions(-) diff --git a/maven-embedder/src/main/java/org/apache/maven/embedder/ContainerCustomizer.java b/maven-embedder/src/main/java/org/apache/maven/embedder/ContainerCustomizer.java index cfe8128f47..a16a7f6c7a 100644 --- a/maven-embedder/src/main/java/org/apache/maven/embedder/ContainerCustomizer.java +++ b/maven-embedder/src/main/java/org/apache/maven/embedder/ContainerCustomizer.java @@ -14,18 +14,21 @@ package org.apache.maven.embedder; * See the License for the specific language governing permissions and * limitations under the License. */ + import org.codehaus.plexus.PlexusContainer; /** * Instances of this interface can be user upon start of the embedder to customize * the components in the plexus container. + * * @author mkleint */ -public interface ContainerCustomizer { +public interface ContainerCustomizer +{ /** * callback from embedder's start() method that allows to customize the components * in the container. */ - void customize(PlexusContainer container); - + void customize( PlexusContainer container ); + } diff --git a/maven-embedder/src/main/java/org/apache/maven/embedder/DefaultMavenEmbedRequest.java b/maven-embedder/src/main/java/org/apache/maven/embedder/DefaultMavenEmbedRequest.java index 5aae1227c6..2c6edb312d 100644 --- a/maven-embedder/src/main/java/org/apache/maven/embedder/DefaultMavenEmbedRequest.java +++ b/maven-embedder/src/main/java/org/apache/maven/embedder/DefaultMavenEmbedRequest.java @@ -19,16 +19,20 @@ import java.io.File; import java.net.URL; import java.util.ArrayList; import java.util.List; + import org.apache.maven.settings.Settings; /** * Default implementation of MavenEmbedRequest intefrace. + * * @author mkleint */ -public class DefaultMavenEmbedRequest implements MavenEmbedRequest { +public class DefaultMavenEmbedRequest + implements MavenEmbedRequest +{ private List inactives; - + private List actives; private Settings settings; @@ -39,68 +43,85 @@ public class DefaultMavenEmbedRequest implements MavenEmbedRequest { private ContainerCustomizer customizer; - /** Creates a new instance of DefaultMavenEmbedRequest */ - public DefaultMavenEmbedRequest() { + /** + * Creates a new instance of DefaultMavenEmbedRequest + */ + public DefaultMavenEmbedRequest() + { } - - public MavenEmbedRequest addActiveProfile(String profile) { - getActiveProfiles().add(profile); + + public MavenEmbedRequest addActiveProfile( String profile ) + { + getActiveProfiles().add( profile ); return this; } - public MavenEmbedRequest addInactiveProfile(String profile) { - getInactiveProfiles().add(profile); + public MavenEmbedRequest addInactiveProfile( String profile ) + { + getInactiveProfiles().add( profile ); return this; } - public MavenEmbedRequest addActiveProfiles(List profiles) { - getActiveProfiles().addAll(profiles); + public MavenEmbedRequest addActiveProfiles( List profiles ) + { + getActiveProfiles().addAll( profiles ); return this; } - public MavenEmbedRequest addInactiveProfiles(List profiles) { - getInactiveProfiles().addAll(profiles); + public MavenEmbedRequest addInactiveProfiles( List profiles ) + { + getInactiveProfiles().addAll( profiles ); return this; } - public List getActiveProfiles() { - if (actives == null) { + public List getActiveProfiles() + { + if ( actives == null ) + { actives = new ArrayList(); } return actives; } - public List getInactiveProfiles() { - if (inactives == null) { + public List getInactiveProfiles() + { + if ( inactives == null ) + { inactives = new ArrayList(); } return inactives; } - public MavenEmbedRequest setUserSettingsFile(File user) { + public MavenEmbedRequest setUserSettingsFile( File user ) + { userSettings = user; return this; } - public MavenEmbedRequest setGlobalSettingsFile(File global) { + public MavenEmbedRequest setGlobalSettingsFile( File global ) + { globalSettings = global; return this; } - public File getUserSettingsFile() { + public File getUserSettingsFile() + { return userSettings; } - public File getGlobalSettingsFile() { + public File getGlobalSettingsFile() + { return globalSettings; } - public MavenEmbedRequest setConfigurationCustomizer(ContainerCustomizer customizer) { + public MavenEmbedRequest setConfigurationCustomizer( ContainerCustomizer customizer ) + { this.customizer = customizer; return this; } - public ContainerCustomizer getContainerCustomizer() { + public ContainerCustomizer getContainerCustomizer() + { return customizer; }