Package org.jboss.profileservice.spi

Examples of org.jboss.profileservice.spi.ProfileKey


   {
      InitialContext ctx = super.getInitialContext();
      ProfileService ps = (ProfileService) ctx.lookup("ProfileService");
      Collection<ProfileKey> keys = ps.getActiveProfileKeys();
      log.info("getProfileKeys: "+keys);
      ProfileKey defaultKey = new ProfileKey(PROFILESERVICE_SERVER_NAME);
      assertTrue("keys contains profileservice", keys.contains(defaultKey));
   }
View Full Code Here


    */
   public void testNoSuchProfileException()
      throws Exception
   {
      DeploymentManager deployMgr = getDeploymentManager();
      ProfileKey badKey = new ProfileKey("no-such-profile");
      try
      {
         deployMgr.loadProfile(badKey);
         fail("Did not see NoSuchProfileException");
      }
View Full Code Here

   {
      login("javaduke", "anotherduke".toCharArray());
      ProfileService ps = getProfileService();
      Collection<ProfileKey> keys = ps.getProfileKeys();
      log.info("getProfileKeys: "+keys);
      ProfileKey defaultKey = new ProfileKey("all");
      assertTrue("keys contains default", keys.contains(defaultKey));
      logout();
   }
View Full Code Here

   {
      String profileName = configuration.getProfileName();
      InitialContext ctx = createContext();
      profileService = (ProfileService) ctx.lookup("ProfileService");
      deploymentManager = profileService.getDeploymentManager();
      ProfileKey defaultKey = new ProfileKey(profileName);
      deploymentManager.loadProfile(defaultKey);
      VFS.init();
   }
View Full Code Here

      contextInst.set(ctx);
      profileService = (ProfileService) ctx.lookup("ProfileService");

      deploymentManager = profileService.getDeploymentManager();

      ProfileKey defaultKey = new ProfileKey(DEFAULT_PROFILE_KEY_NAME);
      deploymentManager.loadProfile(defaultKey);
   }
View Full Code Here

   {
      Context ctx = createContext();
      profileService = (ProfileService) ctx.lookup("ProfileService");
      deploymentManager = profileService.getDeploymentManager();
     
      ProfileKey defaultKey = new ProfileKey(DEFAULT_PROFILE_KEY_NAME);
      deploymentManager.loadProfile(defaultKey);
      VFS.init();
   }
View Full Code Here

      Context ctx = createContext();
      profileService = (ProfileService) ctx.lookup("ProfileService");
     
      deploymentManager = profileService.getDeploymentManager();

      ProfileKey defaultKey = new ProfileKey(DEFAULT_PROFILE_KEY_NAME);
      deploymentManager.loadProfile(defaultKey);
   }
View Full Code Here

   {
      String profileName = configuration.getProfileName();
      Context ctx = createContext();
      profileService = (ProfileService) ctx.lookup("ProfileService");
      deploymentManager = profileService.getDeploymentManager();
      ProfileKey defaultKey = new ProfileKey(profileName);
      deploymentManager.loadProfile(defaultKey, false);
      VFS.init();
   }
View Full Code Here

      Context ctx = server.getNamingContext();
      profileService = (ProfileService) ctx.lookup("ProfileService");

      deploymentManager = profileService.getDeploymentManager();

      ProfileKey defaultKey = new ProfileKey(profileName);
      deploymentManager.loadProfile(defaultKey);
   }
View Full Code Here

      contextInst.set(ctx);
      profileService = (ProfileService) ctx.lookup("ProfileService");

      deploymentManager = profileService.getDeploymentManager();

      ProfileKey defaultKey = new ProfileKey(DEFAULT_PROFILE_KEY_NAME);
      deploymentManager.loadProfile(defaultKey);
   }
View Full Code Here

TOP

Related Classes of org.jboss.profileservice.spi.ProfileKey

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.