Examples of alias()


Examples of de.scoopgmbh.copper.WorkflowDescription.alias()

    for (Class<?> wfClass : map.values()) {
      wfMapLatest.put(wfClass.getName(), wfClass); // workflow is always accessible by its name
     
      WorkflowDescription wfDesc = wfClass.getAnnotation(WorkflowDescription.class);
      if (wfDesc != null) {
        final String alias = wfDesc.alias();
        final WorkflowVersion version = new WorkflowVersion(wfDesc.majorVersion(), wfDesc.minorVersion(), wfDesc.patchLevelVersion());
        wfMapVersioned.put(createAliasName(alias, version), wfClass);
       
        WorkflowVersion existingLatest = latest.get(alias);
        if (existingLatest == null || version.isLargerThan(existingLatest)) {
View Full Code Here

Examples of hudson.plugins.analysis.util.model.AnnotationStream.alias()

     * Tests whether the instance hash of the findbugs library is correctly used.
     */
    @Test
    public void testInstanceHash() {
        AnnotationStream xstream = new AnnotationStream();
        xstream.alias("bug", Bug.class);

        InputStream stream = BugsDifferencerTest.class.getResourceAsStream("issue-6669-1.xml");
        FileAnnotation[] current;
        try {
            current = (FileAnnotation[])xstream.fromXML(stream);
View Full Code Here

Examples of hudson.util.XStream2.alias()

        getTargetConfigFile(XSTREAM).read();
    }

    private XStream initXStream() {
        XStream XSTREAM = new XStream2();
        XSTREAM.alias("project", FreeStyleProject.class);
        XSTREAM.alias("build", FreeStyleBuild.class);
        return XSTREAM;
    }

View Full Code Here

Examples of javax.faces.view.facelets.MetaRuleset.alias()

   
    protected MetaRuleset createMetaRuleset(Class type)
    {
        MetaRuleset rules = super.createMetaRuleset(type);
       
        rules.alias("class", "styleClass");
        rules.addRule(ElementNameRule.INSTANCE);
       
        return rules;
    }
   
View Full Code Here

Examples of javax.persistence.criteria.Expression.alias()

        Root<EntityA_Coll_String> a = q.from(EntityA_Coll_String.class);
        q.select(a);
        Subquery<Set> sq = q.subquery(Set.class);
        Root<EntityA_Coll_String> a1 = sq.from(EntityA_Coll_String.class);
        Expression n = a1.get(EntityA_Coll_String_.nickNames);
        n.alias("n");
        sq.where(cb.like(n, "%1"));
        sq.select(n);
        q.where(cb.exists(sq));
        q.orderBy(cb.asc(a));
       
View Full Code Here

Examples of jnr.ffi.annotations.TypeDefinition.alias()

   
    private static Type lookupAliasedType(jnr.ffi.Runtime runtime, Collection<Annotation> annotations) {
        for (Annotation a : annotations) {
            TypeDefinition typedef = a.annotationType().getAnnotation(TypeDefinition.class);
            if (typedef != null) {
                return runtime.findType(typedef.alias());
            }
        }

        return null;
    }
View Full Code Here

Examples of org.codehaus.plexus.component.annotations.Component.alias()

        component.setComponentFactory(filterEmptyAsNull(anno.factory()));

        component.setDescription(filterEmptyAsNull(anno.description()));

        component.setAlias(filterEmptyAsNull(anno.alias()));

        component.setIsolatedRealm(anno.isolatedRealm());

        for (AnnClass c : getClasses(annClass, cl)) {
            for (AnnField field : c.getFields().values()) {
View Full Code Here

Examples of org.elasticsearch.action.admin.indices.template.put.PutIndexTemplateRequest.alias()

                .mapping(Constants.DEFAULT_MAPPING_TYPE, md.defaultMappingMap)
                .create(false)
                .settings(md.metaData.settings())
                .template(templateName + "*");
        for (String alias : md.aliases()) {
            request = request.alias(new Alias(alias));
        }
        transportPutIndexTemplateAction.execute(request);
    }

    private String name() {
View Full Code Here

Examples of org.elasticsearch.cluster.metadata.AliasAction.alias()

            }
            for (String index : concreteIndices) {
                for (String alias : action.concreteAliases(state.metaData(), index)) {
                    AliasAction finalAction = new AliasAction(action.aliasAction());
                    finalAction.index(index);
                    finalAction.alias(alias);
                    finalActions.add(finalAction);
                    //if there is only delete requests, none will be added if the types do not map to any existing type
                    hasOnlyDeletesButNoneCanBeDone = false;
                }
            }
View Full Code Here

Examples of org.elasticsearch.cluster.metadata.AliasMetaData.alias()

        GetIndexTemplatesResponse indexTemplatesResponse =
                client().admin().indices().prepareGetTemplates(".partitioned.t.").execute().actionGet();
        IndexTemplateMetaData indexTemplateMetaData = indexTemplatesResponse.getIndexTemplates().get(0);
        AliasMetaData t = indexTemplateMetaData.aliases().get("t");
        assertThat(t.alias(), is("t"));

        execute("select partitioned_by from information_schema.tables where table_name = 't'");
        assertThat(((String[]) response.rows()[0][0])[0], is("p"));
    }
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.