Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
JDF-450 - Added an interface for Stacks to hide public setters.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcoughlin committed Aug 26, 2013
1 parent 3edd83f commit 63a9069
Show file tree
Hide file tree
Showing 13 changed files with 286 additions and 128 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import org.jboss.jdf.stacks.client.messages.JBossLoggingMessages;
import org.jboss.jdf.stacks.client.messages.StacksMessages;
import org.jboss.jdf.stacks.model.Stacks;
import org.jboss.jdf.stacks.model.StacksImpl;
import org.jboss.jdf.stacks.parser.Parser;

/**
Expand Down
42 changes: 29 additions & 13 deletions src/main/java/org/jboss/jdf/stacks/model/Archetype.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,38 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.jboss.jdf.stacks.model;

public interface Archetype {

public String getId() ;
public String getName() ;
public String getDescription() ;
public String getId();

public String getName();

public String getDescription();

public String getGroupId() ;
public String getGroupId();

public String getArtifactId();

public String getArtifactId() ;

public String getRecommendedVersion();

public String getRepositoryURL() ;

public Archetype getBlank() ;


public String getRepositoryURL();

public Archetype getBlank();

}
27 changes: 22 additions & 5 deletions src/main/java/org/jboss/jdf/stacks/model/ArchetypeVersion.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.jboss.jdf.stacks.model;

import java.util.Properties;

public interface ArchetypeVersion {

public String getId();
public String getId();

public Archetype getArchetype();
public Archetype getArchetype();

public String getVersion();
public String getVersion();

public String getRepositoryURL();
public String getRepositoryURL();

public Properties getLabels();
public Properties getLabels();

}
29 changes: 23 additions & 6 deletions src/main/java/org/jboss/jdf/stacks/model/Bom.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.jboss.jdf.stacks.model;

public interface Bom {

public String getId();
public String getId();

public String getName();
public String getName();

public String getDescription();
public String getDescription();

public String getGroupId();
public String getGroupId();

public String getArtifactId();
public String getArtifactId();

public String getRecommendedVersion();
public String getRecommendedVersion();

}
25 changes: 21 additions & 4 deletions src/main/java/org/jboss/jdf/stacks/model/BomVersion.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.jboss.jdf.stacks.model;

import java.util.Properties;

public interface BomVersion {

public String getId();
public String getId();

public Bom getBom();
public Bom getBom();

public String getVersion();
public String getVersion();

public Properties getLabels();
public Properties getLabels();

}
25 changes: 21 additions & 4 deletions src/main/java/org/jboss/jdf/stacks/model/MajorRelease.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.jboss.jdf.stacks.model;

import java.util.List;

public interface MajorRelease {

public String getName();
public String getName();

public String getVersion();
public String getVersion();

public Runtime getRecommendedRuntime();
public Runtime getRecommendedRuntime();

public List<MinorRelease> getMinorReleases();
public List<MinorRelease> getMinorReleases();

}
23 changes: 20 additions & 3 deletions src/main/java/org/jboss/jdf/stacks/model/MinorRelease.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.jboss.jdf.stacks.model;

public interface MinorRelease {

public String getName();
public String getName();

public String getVersion();
public String getVersion();

public Runtime getRecommendedRuntime();
public Runtime getRecommendedRuntime();

}
43 changes: 30 additions & 13 deletions src/main/java/org/jboss/jdf/stacks/model/Runtime.java
Original file line number Diff line number Diff line change
@@ -1,34 +1,51 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.jboss.jdf.stacks.model;

import java.util.List;
import java.util.Properties;

public interface Runtime {

public String getId();
public String getId();

public String getName();
public String getName();

public String getGroupId();
public String getGroupId();

public String getArtifactId();
public String getArtifactId();

public String getVersion();
public String getVersion();

public String getUrl();
public String getUrl();

public String getDownloadUrl();
public String getDownloadUrl();

public Properties getLabels();
public Properties getLabels();

public List<BomVersion> getBoms();
public List<BomVersion> getBoms();

public BomVersion getDefaultBom();
public BomVersion getDefaultBom();

public List<ArchetypeVersion> getArchetypes();
public List<ArchetypeVersion> getArchetypes();

public ArchetypeVersion getDefaultArchetype();
public ArchetypeVersion getDefaultArchetype();

public String getLicense();
public String getLicense();

}

0 comments on commit 63a9069

Please sign in to comment.