Examples of ProfileMetaData


Examples of org.jboss.portal.identity.metadata.profile.ProfileMetaData

    * @throws org.jboss.portal.identity.IdentityException
     */
   public static ProfileMetaData parseProfileConfiguration(String configFile) throws IdentityException
    {
      ClassLoader tcl = Thread.currentThread().getContextClassLoader();
      ProfileMetaData meta;
      try
      {
         log.info("Processing identity profile configuration");
         if (log.isDebugEnabled())
         {
View Full Code Here

Examples of org.jboss.profileservice.spi.metadata.ProfileMetaData

      // TODO add dependencies on bootstrap profiles
      String[] rootSubProfiles = new String[0];
      // Create a hotdeployment profile
      // FIXME JBAS-7720 restore hot deploy capability (and make it configurable too)
      ProfileMetaData profileMetaData = ProfileMetaDataFactory.createFilteredProfileMetaData(getProfileName(),deploymentRoot, this.deploymentNames.toArray(new String[this.deploymentNames.size()]));
      // register the profile metadata with the profile service
      this.profileKey = this.profileService.registerProfile(profileMetaData);
      // if on-demand is disabled, then just activate it now
      if (this.activateOnDemand == false)
View Full Code Here

Examples of org.jboss.profileservice.spi.metadata.ProfileMetaData

   {
      // Create the application profile
      super.createApplicationProfiles(profiles, dependencies);
     
      // Create the farm profile
      ProfileMetaData farm = null;
      if (getFarmURIs() != null)
      {
         URI[] farmURIs = getFarmURIs().toArray(new URI[getFarmURIs().size()]);
         farm = createFarmingProfileMetaData(
               FARM_NAME, true, farmURIs, dependencies);
         // Add
         profiles.add(farm);
         dependencies.add(FARM_NAME);
      }
      // Create the hasingleton profile
      if (getHASingletonURIs() != null && getHASingletonURIs().isEmpty() == false)
      {
         if(getHASingletonURIs().size() != 1)
         {
            // WARN
         }
         URI hasingletonURI = getHASingletonURIs().get(0);
         // Note HASingleton can't depend on others or it will get undeployed prematurely
         ProfileMetaData hasingletons = createScanningProfile(HASINGLETON_NAME, hasingletonURI,
               Collections.EMPTY_SET, true);
         // Add
         profiles.add(hasingletons);
         dependencies.add(HASINGLETON_NAME);
      }
View Full Code Here

Examples of org.jboss.profileservice.spi.metadata.ProfileMetaData

      }
     
      // TODO add dependencies on bootstrap profiles
      String[] rootSubProfiles = new String[0];
      // Create a hotdeployment profile
      ProfileMetaData metadata = createProfileMetaData(true, deployURI, rootSubProfiles);
     
      setProfileKey(getProfileService().registerProfile(metadata));
   }
View Full Code Here

Examples of org.jboss.profileservice.spi.metadata.ProfileMetaData

     
      // TODO add dependencies on bootstrap profiles
      String[] rootSubProfiles = new String[0];
      // Create a hotdeployment profile
      // FIXME JBAS-7720 restore hot deploy capability (and make it configurable too)
      ProfileMetaData metadata = ProfileMetaDataFactory.createFilteredProfileMetaData(getProfileName(),
            deploymentRoot, this.deploymentNames.toArray(new String[this.deploymentNames.size()]));

      this.profileKey = this.profileService.registerProfile(metadata);
     
      if (this.activateOnDemand)
View Full Code Here

Examples of org.jboss.profileservice.spi.metadata.ProfileMetaData

        
         assertNotNull(md.getProfiles());
         assertEquals(3, md.getProfiles().size());
        
         // test immutable
         ProfileMetaData immutable = md.getProfiles().get(0);
         assertTrue(immutable instanceof FilteredProfileMetaData);
        
         // test hotdeployment
         ProfileMetaData hotdeployment = md.getProfiles().get(1);
         assertTrue(hotdeployment instanceof HotDeploymentProfileMetaData);
        
         // test wildcard
         ProfileMetaData maven = md.getProfiles().get(2);
         assertTrue(maven instanceof MavenProfileMetaData);
        
         for(ProfileMetaData profile: md.getProfiles())
            log.debug(profile.getSource().getClass());
        
View Full Code Here

Examples of org.jboss.profileservice.spi.metadata.ProfileMetaData

    * @param key the ProfileKey
    * @throws Exception
    */
   public void createProfiles(Map<ProfileKey, Profile> profiles, ProfileKey key) throws Exception
   {
      ProfileMetaData profileMetaData = this.profileMap.get(key);
      if(profileMetaData == null)
         throw new IllegalStateException("Could not find metaData for key: " + key);

      List<ProfileKey> subProfiles = new ArrayList<ProfileKey>();
     
View Full Code Here

Examples of org.jboss.profileservice.spi.metadata.ProfileMetaData

         addProfile(bindingsKey, bindings);
         subprofileNames = new String[] { bindingsName };
      }
      // Create bootstrap profile meta data
      ProfileKey bootstrapKey = new ProfileKey(bootstrapName);
      ProfileMetaData bootstrap = createProfileMetaData(bootstrapName, false,
            new URI[] { bootstrapURI }, subprofileNames );
      addProfile(bootstrapKey, bootstrap);
     
      subprofileNames = createSubprofileNames(subprofileNames, bootstrapName);
     
      // Create deployers profile meta data
      ProfileKey deployersKey = new ProfileKey(deployersName);
      ProfileMetaData deployers = createProfileMetaData(
            deployersName, false, new URI[] { deployersURI }, subprofileNames);
      addProfile(deployersKey, deployers);
     
      subprofileNames = createSubprofileNames(subprofileNames, deployersName);

      // Create applications profile meta data
      String[] rootSubProfiles = createApplicationProfiles(subprofileNames);
     
      // Create empty root profile;
      ProfileMetaData root = new EmptyProfileMetaData(
            null, null, rootKey.getName(), createSubProfileMetaData(rootSubProfiles));

      // Add to profile map
      addProfile(rootKey, root);
   }
View Full Code Here

Examples of org.jboss.profileservice.spi.metadata.ProfileMetaData

    */
   protected String createApplicationProfile(String[] applicationsSubProfiles)
   {
      ProfileKey applicationsKey = new ProfileKey(applicationsName);
      URI[] applicationURIs = getApplicationURIs().toArray(new URI[getApplicationURIs().size()]);
      ProfileMetaData applications = createProfileMetaData(
            applicationsName, true, applicationURIs, applicationsSubProfiles);
      // Add to profile map
      addProfile(applicationsKey, applications);
      return applicationsName;
   }
View Full Code Here

Examples of org.jboss.profileservice.spi.metadata.ProfileMetaData

      // Load the profiles
      if(this.profileKey == null)
         this.profileKey = new ProfileKey(server.getConfig().getServerName());
     
      Map<String, Object> metaData = server.getMetaData();
      ProfileMetaData pmd = (ProfileMetaData) metaData.get(ProfileMetaData.class.getName());
      // Register the profiles
      Collection<Profile> bootstrapProfiles = profileFactory.createProfiles(profileKey, null);
      for(Profile profile : bootstrapProfiles)
      {
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.