Examples of ClasspathScanner


Examples of com.netflix.governator.lifecycle.ClasspathScanner

        annotations.add(Resources.class);
        if ( additionalAnnotations != null )
        {
            annotations.addAll(additionalAnnotations);
        }
        return new ClasspathScanner(basePackages, annotations);
    }
View Full Code Here

Examples of com.netflix.governator.lifecycle.ClasspathScanner

    @Override
    protected void beforeInjectorCreation(@SuppressWarnings("unused") LifecycleInjectorBuilder builderToBeUsed) {
        List<Class<? extends Annotation>> explorerGuiceAnnotations = Lists.newArrayList();
        explorerGuiceAnnotations.add(ExplorerGuiceModule.class);
        Collection<String> basePackages = getBasePackages();
        ClasspathScanner classpathScanner = new ClasspathScanner(basePackages, explorerGuiceAnnotations);

        List<Module> explorerGuiceModules = new ArrayList<Module>();

        String jerseyPkgPath = "";
        for (Class<?> explorerGuiceModuleClass : classpathScanner.getClasses()) {
            try {

                ExplorerGuiceModule guiceModAnnotation = explorerGuiceModuleClass.getAnnotation(ExplorerGuiceModule.class);
                if (guiceModAnnotation.jerseyPackagePath() != null &&
                        ! guiceModAnnotation.jerseyPackagePath().isEmpty()) {
View Full Code Here

Examples of com.netflix.governator.lifecycle.ClasspathScanner

    public void registerAdminPagesWithClasspathScan() {
        List<Class<? extends Annotation>> annotationList = new ArrayList<Class<? extends Annotation>>(1);
        annotationList.add(AdminPage.class);

        ClasspathScanner cs = new ClasspathScanner(getAdminPagesPackagesToScan(), annotationList);
        for (Class<?> baseServerAdminPageClass : cs.getClasses()) {
            if (derivedFromAbstractBaseServePageInfo(baseServerAdminPageClass) ||
                    implementsAdminPageInfo(baseServerAdminPageClass)) {
                try {
                    AdminPageInfo baseServerPageInfo = (AdminPageInfo) baseServerAdminPageClass.newInstance();
                    add(baseServerPageInfo);
View Full Code Here

Examples of com.technophobia.substeps.scanner.ClasspathScanner

    private SyntaxBuilder() {
    }


    public static List<Class<?>> getStepImplementationClasses(final ClassLoader classLoader, final String[] classpath) {
        final ClasspathScanner cpScanner = new ClasspathScanner();

        final List<Class<?>> implClassList = cpScanner.getClassesWithAnnotation(SubSteps.StepImplementations.class,
                classLoader, classpath);

        return implClassList;
    }
View Full Code Here

Examples of com.twosigma.beaker.autocomplete.ClasspathScanner

  private final ConcurrentLinkedQueue<jobDescriptor> jobQueue = new ConcurrentLinkedQueue<jobDescriptor>();

  public JavaEvaluator(String id) {
    shellId = id;
    packageId = "com.twosigma.beaker.javash.bkr"+shellId.split("-")[0];
    cps = new ClasspathScanner();
    jac = new JavaAutocomplete(cps);
    classPath = new ArrayList<String>();
    imports = new ArrayList<String>();
    exit = false;
    updateLoader = false;
View Full Code Here

Examples of com.twosigma.beaker.autocomplete.ClasspathScanner

      cpp += pt;
      cpp += File.pathSeparator;
    }
    cpp += File.pathSeparator;
    cpp += System.getProperty("java.class.path");
    cps = new ClasspathScanner(cpp);
    jac = new JavaAutocomplete(cps);

    // signal thread to create loader
    updateLoader = true;
    syncObject.release();
View Full Code Here

Examples of com.twosigma.beaker.autocomplete.ClasspathScanner

  protected final Semaphore syncObject = new Semaphore(0, true);
  protected final ConcurrentLinkedQueue<jobDescriptor> jobQueue = new ConcurrentLinkedQueue<jobDescriptor>();

  public GroovyEvaluator(String id) {
    shellId = id;
    cps = new ClasspathScanner();
    classPath = new ArrayList<String>();
    imports = new ArrayList<String>();
    exit = false;
    updateLoader = false;
    myThreadGroup = new ThreadGroup("tg"+shellId);
View Full Code Here

Examples of com.twosigma.beaker.autocomplete.ClasspathScanner

      cpp += pt;
      cpp += File.pathSeparator;
    }
    cpp += File.pathSeparator;
    cpp += System.getProperty("java.class.path");
    cps = new ClasspathScanner(cpp);

    updateLoader=true;
  }
View Full Code Here

Examples of com.twosigma.beaker.autocomplete.ClasspathScanner

  public static boolean bail = false;
  public static boolean x2 = false;
  public static boolean quiet = false;

  public static void main(String[] args) {
    ClasspathScanner cps = new ClasspathScanner();
   
    List<String> inputFiles = new ArrayList<String>();
    try {
      if (args.length > 0 ) {
        // for each directory/file specified on the command line
View Full Code Here

Examples of de.kalpatec.pojosr.framework.launch.ClasspathScanner

        System.setProperty("foo", val);

        System.setProperty("org.bundles.framework.storage", "target/bundles/" + System.currentTimeMillis());
        System.setProperty("karaf.name", "root");

        List<BundleDescriptor> bundles = new ClasspathScanner().scanForBundles("(Bundle-SymbolicName=*)");
        bundles.add(getBundleDescriptor(
                "target/jasypt.jar",
                bundle().add("OSGI-INF/blueprint/karaf-jaas-jasypt.xml", getClass().getResource("/OSGI-INF/blueprint/karaf-jaas-jasypt.xml"))
                           .set("Manifest-Version", "2")
                           .set("Bundle-ManifestVersion", "2")
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.