Package org.jboss.system.server.profileservice.repository

Examples of org.jboss.system.server.profileservice.repository.AbstractBootstrapProfileFactory


      File f = new File("src/resources/parsing-tests/");
      File one = new File(f, "config/profiles");
      File two = new File(f, "common/profiles");
     
      //
      AbstractBootstrapProfileFactory profileFactory = new XmlProfileFactory(
            new URI[] { one.toURI(), two.toURI() });
      profileFactory.setProfileFactory(createProfileFactory());
     
      // Clear jar suffixes.
      JarUtils.clearSuffixes();
     
      // A list of profile keys
      List<ProfileKey> keys = new ArrayList<ProfileKey>();
     
      // Parse
      Collection<Profile> profiles = profileFactory.createProfiles(new ProfileKey("default"), null);
      for(Profile profile : profiles)
      {
         // Register
         profileService.registerProfile(profile);
         ProfileKey key = profile.getKey();
View Full Code Here


      File f = new File("src/resources/parsing-tests/");
      File one = new File(f, "config/profiles");
      File two = new File(f, "common/profiles");
     
      // The xml profile factory
      AbstractBootstrapProfileFactory profileFactory = new XmlProfileFactory(
            new URI[] { one.toURI(), two.toURI() });
      profileFactory.setProfileFactory(createProfileFactory());
     
      // Clear jar suffixes.
      JarUtils.clearSuffixes();
     
      // Parse
      Collection<Profile> profiles = profileFactory.createProfiles(new ProfileKey("default"), null);
      assertNotNull(profiles);
     
      // 2 profiles in default.xml
      // 1 profile in seam.xml
      // 2 profiles in clustering.xml
View Full Code Here

TOP

Related Classes of org.jboss.system.server.profileservice.repository.AbstractBootstrapProfileFactory

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.