Examples of freeze()


Examples of org.apache.struts.config.impl.ModuleConfigImpl.freeze()

        testActionConfig.setPath("/Test");
        testActionConfig.setName("foo");
        testActionConfig.setScope("request");
        moduleConfig.addActionConfig(testActionConfig);

        moduleConfig.freeze(); // otherwise, ActionConfigMatcher will be null and we'll get an NPE...
    }

    public void testLookupByNameAndRequestScope()
        throws Exception {
        CopyFormToContext command = new CopyFormToContext();
View Full Code Here

Examples of org.fusesource.hawtbuf.proto.PBMessage.freeze()

        }
        PBMessage msg = (PBMessage) arg;
        if( msg==null ) {
            return;
        }
        msg.freeze().writeUnframed(target);
    }

    private Object decodeProtobuf(Class<?> type, DataByteArrayInputStream source) throws IllegalAccessException, NoSuchFieldException, IOException {
        if( !PBMessage.class.isAssignableFrom(type) ) {
            throw new IllegalArgumentException("Invalid "+name()+" serialization method: method argument not a "+PBMessage.class.getName());
View Full Code Here

Examples of org.g4studio.core.mvc.xstruts.config.ModuleConfig.freeze()

      initModulePlugIns(moduleConfig);
      initModuleFormBeans(moduleConfig);
      initModuleForwards(moduleConfig);
      initModuleExceptionConfigs(moduleConfig);
      initModuleActions(moduleConfig);
      moduleConfig.freeze();

      Enumeration names = getServletConfig().getInitParameterNames();

      while (names.hasMoreElements()) {
        String name = (String) names.nextElement();
View Full Code Here

Examples of org.geotools.metadata.iso.citation.CitationImpl.freeze()

        super(MINIMUM_PRIORITY);
    }

    public Citation getAuthority() {
        CitationImpl c = new CitationImpl(EXCEPTION_MESSAGE);
        c.freeze();
        return c;
    }

    public Set<String> getAuthorityCodes(Class<? extends IdentifiedObject> type)
            throws FactoryException {
View Full Code Here

Examples of org.geotools.metadata.iso.citation.OnLineResourceImpl.freeze()

    Stroke stroke = sf.stroke(ff.literal("#000000"), null, null, null, null, null, null);
    Fill fill = sf.fill(null, ff.literal(Color.BLUE), ff.literal(1.0));
   
    // OnLineResource implemented by gt-metadata - so no factory!
    OnLineResourceImpl svg = new OnLineResourceImpl(new URI("file:city.svg"));
    svg.freeze(); // freeze to prevent modification at runtime
   
    OnLineResourceImpl png = new OnLineResourceImpl(new URI("file:city.png"));
    png.freeze(); // freeze to prevent modification at runtime
   
    //
View Full Code Here

Examples of org.grouplens.lenskit.vectors.MutableSparseVector.freeze()

                        uis = new LongArrayList();
                        userItems.put(user, uis);
                    }
                    uis.add(item.getItemId());
                }
                itemVectors.put(item.getItemId(), vector.freeze());
            }
        } finally {
            itemCursor.close();
        }
View Full Code Here

Examples of org.impalaframework.module.RootModuleDefinition.freeze()

                transitions.add(new ModuleStateChange(Transition.UNLOADED_TO_LOADED, moduleDefinition));
                moduleDefinition.setState(ModuleState.LOADING);
            }
        }
       
        copy.freeze();
        return new TransitionSet(transitions, copy);
    }

}
View Full Code Here

Examples of org.impalaframework.module.definition.SimpleRootModuleDefinition.freeze()

        ModuleDefinitionSource moduleDefinitionSource = EasyMock.createMock(ModuleDefinitionSource.class);
       
        expect(moduleDefinitionSource.getModuleDefinition()).andReturn(originalDefinition);
       
        SimpleRootModuleDefinition definition = new SimpleRootModuleDefinition("root", "config");
        definition.freeze();
       
        TransitionSet set = new TransitionSet(new ArrayList<ModuleStateChange>(), definition);
        expect(moduleStateHolder.cloneRootModuleDefinition()).andReturn(definition);
       
        expect(repairModificationExtractor.getTransitions(application, isA(RootModuleDefinition.class), isA(RootModuleDefinition.class))).andReturn(set);
View Full Code Here

Examples of org.jboss.metadata.spi.scope.ScopeKey.freeze()

   }

   public void testFreeze() throws Exception
   {
      ScopeKey key = new ScopeKey(testScope1);
      key.freeze();
      try
      {
         key.addScope(testScope1);
         fail("Should not be here!");
      }
View Full Code Here

Examples of org.jboss.metadata.spi.scope.ScopeKey.freeze()

   public MetaDataRetrieval addMetaDataRetrieval(MetaDataRetrieval retrieval)
   {
      if (retrieval == null)
         throw new IllegalArgumentException("Null retrieval");
      ScopeKey key = retrieval.getScope();
      key.freeze();
      return retrievals.put(key, retrieval);
   }

   public MetaDataRetrieval removeMetaDataRetrieval(ScopeKey key)
   {
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.