Package bear.annotations

Examples of bear.annotations.Project


        Preconditions.checkNotNull(defaultDeployment, "deployment is not present, you need to set BearProject.defaultDeployment field");
        return self();
    }

    private void setProjectVars() {
        Project projectAnn = getClass().getAnnotation(Project.class);

        setAnnotation(bear.fullName, projectAnn.name());
        setAnnotation(bear.name, projectAnn.shortName());
    }
View Full Code Here


        public ProjectInfo() {
        }

        public ProjectInfo(Class<? extends BearProject> project, String path, GlobalContext global) {
            Project projectAnnotation = project.getAnnotation(Project.class);

            shortName = projectAnnotation.shortName();
            name = project.getSimpleName();
            defaultMethod = projectAnnotation.method();
            methods = new ArrayList<String>();
            shells = new ArrayList<String>();
            this.path = path;

            Set<String> temp = new LinkedHashSet<String>();
View Full Code Here

        Preconditions.checkNotNull(defaultDeployment, "deployment is not present, you need to set BearProject.defaultDeployment field");
        return self();
    }

    private void setProjectVars() {
        Project projectAnn = getClass().getAnnotation(Project.class);

        setAnnotation(bear.fullName, projectAnn.name());
        setAnnotation(bear.name, projectAnn.shortName());
    }
View Full Code Here

    public Optional<CompiledEntry<? extends BearProject>> findProjectShort(String shortName){
        compileWithAll();

        for (CompiledEntry<?> entry : lastCompilationResult.getEntries()) {
            Project project = entry.aClass.getAnnotation(Project.class);

            if(project == null) continue;

            if(project.shortName().equals(shortName)) return (Optional)Optional.of(entry);
        }

        return Optional.absent();
    }
View Full Code Here

        compileWithAll();

        List<CompiledEntry<? extends BearProject>> results = new ArrayList<CompiledEntry<? extends BearProject>>();

        for (CompiledEntry<?> entry : lastCompilationResult.getEntries()) {
            Project project = entry.aClass.getAnnotation(Project.class);

            if(project == null) continue;

            results.add((CompiledEntry) entry);
        }
View Full Code Here

TOP

Related Classes of bear.annotations.Project

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.