Package org.appfuse.mojo.exporter

Examples of org.appfuse.mojo.exporter.Component


     * @param implementation  Default configuration implementation
     * @param jdk5            Is this goal being setup for jdk15?
     * @noinspection unchecked
     */
    public void addDefaultComponent(String outputDirectory, String implementation, boolean jdk5) {
        Component component = new Component();
        component.setName(getName());
        component.setOutputDirectory(outputDirectory);
        component.setImplementation(implementation);
        defaultComponents.put((jdk5) ? "jdk15" : "jdk14", component);
    }
View Full Code Here


     *
     * @return Component
     * @noinspection ForLoopReplaceableByForEach
     */
    protected Component getComponent() {
        Component defaultGoal = defaultComponents.get(HibernateUtils.getJavaVersion());
        if (!components.isEmpty()) {
            for (Iterator<Component> it = components.iterator(); it.hasNext();) {
                Component component = it.next();
                if (getName().equals(component.getName())) {
                    if (component.getImplementation() == null) {
                        component.setImplementation(defaultGoal.getImplementation());
                    }
                    if (component.getOutputDirectory() == null) {
                        component.setOutputDirectory(defaultGoal.getOutputDirectory());
                    }
                    return component;
                }
            }
        }
View Full Code Here

     *            Is this goal being setup for jdk15?
     * @noinspection unchecked
     */
    public void addDefaultComponent(String outputDirectory,
            String implementation, boolean jdk5) {
        Component component = new Component();
        component.setName(getName());
        component.setOutputDirectory(outputDirectory);
        component.setImplementation(implementation);
        defaultComponents.put((jdk5) ? "jdk15" : "jdk14", component);
    }
View Full Code Here

     *
     * @return Component
     * @noinspection ForLoopReplaceableByForEach
     */
    protected Component getComponent() {
        Component defaultGoal = defaultComponents.get(HibernateUtils
                .getJavaVersion());
        if (!components.isEmpty()) {
            for (Iterator<Component> it = components.iterator(); it.hasNext();) {
                Component component = it.next();
                if (getName().equals(component.getName())) {
                    if (component.getImplementation() == null) {
                        component.setImplementation(defaultGoal
                                .getImplementation());
                    }
                    if (component.getOutputDirectory() == null) {
                        component.setOutputDirectory(defaultGoal
                                .getOutputDirectory());
                    }
                    return component;
                }
            }
View Full Code Here

TOP

Related Classes of org.appfuse.mojo.exporter.Component

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.