Examples of create()


Examples of com.buschmais.cdo.api.bootstrap.CdoUnitBuilder.create()

        // optional: transaction
        String transactionMode = (String) properties.get(CdoUnitParameter.TRANSACTION_ATTRIBUTE.getKey());
        builder.transactionAttribute(transactionMode);

        return builder.create();
    }

}

Examples of com.buschmais.cdo.neo4j.api.annotation.Indexed.create()

    }

    @Override
    public IndexedPropertyMetadata createIndexedPropertyMetadata(PropertyMethod propertyMethod) {
        Indexed indexed = propertyMethod.getAnnotation(Indexed.class);
        return new IndexedPropertyMetadata(indexed.create());
    }

    @Override
    public RelationshipMetadata createRelationMetadata(PropertyMethod propertyMethod) {
        Relation relation = propertyMethod.getAnnotationOfProperty(Relation.class);

Examples of com.buschmais.jqassistant.core.store.api.Store.create()

        Map<String, Object> properties = new HashMap<>();
        properties.put(MavenProject.class.getName(), project);
        Store store = mock(Store.class);
        MavenProjectDirectoryDescriptor projectDescriptor = mock(MavenProjectDirectoryDescriptor.class);
        when(store.find(MavenProjectDirectoryDescriptor.class, "group:artifact:1.0.0")).thenReturn(null, projectDescriptor);
        when(store.create(MavenProjectDirectoryDescriptor.class, "group:artifact:1.0.0")).thenReturn(projectDescriptor);

        ArtifactDirectoryDescriptor mainArtifact = mock(ArtifactDirectoryDescriptor.class);
        when(store.find(ArtifactDescriptor.class, "group:artifact:jar:main:1.0.0")).thenReturn(null, mainArtifact);
        when(store.create(ArtifactDirectoryDescriptor.class, "group:artifact:jar:main:1.0.0")).thenReturn(mainArtifact);

Examples of com.buschmais.xo.api.bootstrap.XOUnitBuilder.create()

        // optional: transaction
        String transactionMode = (String) properties.get(XOUnitParameter.TRANSACTION_ATTRIBUTE.getKey());
        builder.transactionAttribute(transactionMode);

        return builder.create();
    }

}

Examples of com.buschmais.xo.neo4j.api.annotation.Indexed.create()

    }

    @Override
    public IndexedPropertyMetadata createIndexedPropertyMetadata(PropertyMethod propertyMethod) {
        Indexed indexed = propertyMethod.getAnnotation(Indexed.class);
        return new IndexedPropertyMetadata(indexed.create(), indexed.unique());
    }

    @Override
    public RelationshipMetadata createRelationMetadata(AnnotatedElement<?> annotatedElement, Map<Class<?>, TypeMetadata> metadataByType) {
        Relation relationAnnotation;

Examples of com.calclab.suco.testing.ioc.MockContainer.create()

     * service when we call the getMessage method on the component
     */
    @Test
    public void componentShouldCallServiceWhenGetMessage() {
  final MockContainer container = new MockContainer();
  final Component component = container.create(Component.class);
  final Service mockedService = container.getInstance(Service.class);
  // perform the call
  component.getMessage();
  // verify that component called the getMessage method on the mock
  // see mockito (mockito.googlecode.com) for more info about how mockito

Examples of com.caucho.config.xml.XmlConfigContext.create()

  public <T> T create(ConfigType<T> type, CreationalContext<T> cxt)
    throws ConfigException
  {
    XmlConfigContext env = XmlConfigContext.create();
   
    return (T) env.create(_node, type);
  }

  public String toString()
  {
    return getClass().getSimpleName() + "[" + _node + "]";

Examples of com.caucho.db.block.BlockStore.create()

    Database db = new Database();
    db.setPath(path);
    db.init();

    BlockStore store = new BlockStore(db, "test", null);
    store.create();

    Block block = store.allocateIndexBlock();
    long blockId = block.getBlockId();
    block.free();

Examples of com.caucho.distcache.CacheManager.create()

  //
  public static QuercusDistcache resin_create_distcache(Env env, String name)
  {
    CacheManager manager = CacheManager.createManager();

    return new QuercusDistcache(manager.create(name));
  }

  public static class QuercusDistcache {
    private final AbstractCache _cache;

Examples of com.caucho.distcache.CacheManagerImpl.create()

  //
  public static QuercusDistcache resin_create_distcache(Env env, String name)
  {
    CacheManagerImpl manager = DistCacheSystem.getCurrent().getCacheManager();

    return new QuercusDistcache(manager.create(name));
  }

  public static class QuercusDistcache {
    private final AbstractCache _cache;
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.