Examples of CustomizationContext


Examples of org.gatein.mop.api.content.CustomizationContext

      LinkedHashSet<CustomizationContext> contexts = new LinkedHashSet<CustomizationContext>();

      //
      while (true)
      {
         CustomizationContext currentContext = current.getContext();
         if (currentContext == null)
         {
            throw new IllegalStateException("Could not resolve customization context for customization " + this);
         }
View Full Code Here

Examples of org.gatein.mop.api.content.CustomizationContext

   protected final Customization<Object> get(Iterator<CustomizationContext> contexts, boolean create)
   {
      if (contexts.hasNext())
      {
         CustomizationContext context = contexts.next();
         String type = context.getContextType();
         ContextTypeContainer typeContainer = getContextTypes();
         Map<String, ContextType> contextTypes = typeContainer.getContextTypes();
         ContextType tmp = contextTypes.get(type);
         if (tmp == null)
         {
            if (create)
            {
               tmp = create();
               contextTypes.put(type, tmp);
            }
            else
            {
               return null;
            }
         }
         Map<String, ContextSpecialization> c = tmp.getSpecializations();
         String id = context.getContextId();
         ContextSpecialization blah = c.get(id);

         //
         if (blah != null || !create)
         {
View Full Code Here

Examples of org.gatein.mop.api.content.CustomizationContext

   //

   public String getName()
   {
      CustomizationContext customizationContext = getContext();
      if (customizationContext instanceof WorkspaceCustomizationContext)
      {
         return getFooName();
      }
      else
View Full Code Here

Examples of org.gatein.mop.api.content.CustomizationContext

      LinkedHashSet<CustomizationContext> contexts = new LinkedHashSet<CustomizationContext>();

      //
      while (true)
      {
         CustomizationContext currentContext = current.getContext();
         if (currentContext == null)
         {
            throw new IllegalStateException("Could not resolve customization context for customization " + this);
         }
View Full Code Here

Examples of org.gatein.mop.api.content.CustomizationContext

   protected final Customization<Object> get(Iterator<CustomizationContext> contexts, boolean create)
   {
      if (contexts.hasNext())
      {
         CustomizationContext context = contexts.next();
         String type = context.getContextType();
         ContextTypeContainer typeContainer = getContextTypes();
         Map<String, ContextType> contextTypes = typeContainer.getContextTypes();
         ContextType tmp = contextTypes.get(type);
         if (tmp == null)
         {
            if (create)
            {
               tmp = create();
               contextTypes.put(type, tmp);
            }
            else
            {
               return null;
            }
         }
         Map<String, ContextSpecialization> c = tmp.getSpecializations();
         String id = context.getContextId();
         ContextSpecialization blah = c.get(id);

         //
         if (blah != null || !create)
         {
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.