Examples of shouldLoad()


Examples of com.googlecode.objectify.impl.LoadEngine.shouldLoad()

*/
public class FakeLoadContext extends LoadContext
{
  private static LoadEngine mockLoadEngine() {
    LoadEngine mock = mock(LoadEngine.class);
    when(mock.shouldLoad(Matchers.<LoadConditions>any())).thenReturn(false);
    return mock;
  }

  public FakeLoadContext() {
    super(mockLoadEngine());
View Full Code Here

Examples of com.jme3.asset.BlenderKey.shouldLoad()

//                        if (blenderKey.isLoadUnlinkedAssets() && blenderKey.shouldLoad(FeaturesToLoad.MATERIALS)) {
//                            loadingResults.addMaterial(this.toMaterial(block.getStructure(blenderContext)));
//                        }
//                        break;
                    case FileBlockHeader.BLOCK_SC00:// Scene
                        if (blenderKey.shouldLoad(FeaturesToLoad.SCENES)) {
                            sceneBlocks.add(block);
                        }
                        break;
                    case FileBlockHeader.BLOCK_WO00:// World
                        if (blenderKey.shouldLoad(FeaturesToLoad.WORLD)) {
View Full Code Here

Examples of com.jme3.asset.BlenderKey.shouldLoad()

                        if (blenderKey.shouldLoad(FeaturesToLoad.SCENES)) {
                            sceneBlocks.add(block);
                        }
                        break;
                    case FileBlockHeader.BLOCK_WO00:// World
                        if (blenderKey.shouldLoad(FeaturesToLoad.WORLD)) {
                            Structure worldStructure = block.getStructure(blenderContext);
                            String worldName = worldStructure.getName();
                            if (blenderKey.getUsedWorld() == null || blenderKey.getUsedWorld().equals(worldName)) {
                                LandscapeHelper landscapeHelper = blenderContext.getHelper(LandscapeHelper.class);
                                Light ambientLight = landscapeHelper.toAmbientLight(worldStructure);
View Full Code Here

Examples of net.sourceforge.javautil.web.server.application.ext.IWebApplicationExtension.shouldLoad()

      if (this.isExtensionLoaded(cd.getDescribedClass())) continue;
     
      IWebApplicationExtension extension = (IWebApplicationExtension) cd.newInstance(this);
     
      if (!extension.shouldLoad(webXml)) continue;
     
      this.loadedExtensions.add(extension);
      if (this.extensions.get(name).settings != null) {
        cd.deserializeProperties(extension, this.extensions.get(name).settings);
      }
View Full Code Here

Examples of org.springframework.data.neo4j.mapping.MappingPolicy.shouldLoad()

    // todo actually cascade !!
    public Object fetch(final Object value, Neo4jPersistentEntity<Object> persistentEntity, Neo4jPersistentProperty property, final MappingPolicy policy, final Neo4jTemplate template) {
        if (value == null) return value;
        //MappingPolicy mappingPolicy = mappingPolicy.combineWith(property.getMappingPolicy());
        final MappingPolicy mappingPolicy = property.getMappingPolicy();
        if (!mappingPolicy.shouldLoad()) return value;
        if (property.getTypeInformation().isCollectionLike()) {
            List<Object> replacement = new ArrayList<Object>();
            for (Object inner : ((Iterable) value)) {
                final BeanWrapper<Object> innerWrapper = BeanWrapper.create(inner, conversionService);
                final PropertyContainer state = entityStateHandler.getPersistentState(inner);
View Full Code Here

Examples of org.teiid.query.tempdata.TempTableStore.MatTableInfo.shouldLoad()

          //remote load
          info.setState(MatState.NEEDS_LOADING, firstload?false:entry.valid, null);
          loadTime = entry.lastUpdate;
        }
      }
      boolean load = info.shouldLoad();
      if (load) {
        if (!info.isValid()) {
          //blocking load
          loadGlobalTable(context, group, tableName, globalStore, info, loadTime);
        } else {
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.