Examples of addAlias()


Examples of org.apache.catalina.Host.addAlias()

            if (host == null) {
                host = createHost(engine, hostName);
                newHost = true;
            }
            while (vhi.hasNext()) {
                host.addAlias(vhi.next());
            }
            context.setRealm(host.getRealm());
            host.addChild(context);
            context.getMapper().setDefaultHostName(host.getName());
View Full Code Here

Examples of org.apache.catalina.core.StandardHost.addAlias()

    public synchronized void start(StartContext context) throws StartException {
        final StandardHost host = new StandardHost();
        host.setAppBase(tempPathInjector.getValue());
        host.setName(name);
        for(final String alias : aliases) {
            host.addAlias(alias);
        }
        if(accessLog != null) {
            host.addValve(createAccessLogValve(host, accessLogPathInjector.getValue(), accessLog));
        }
        if(rewrite != null) {
View Full Code Here

Examples of org.apache.commons.digester.SetNestedPropertiesRule.addAlias()

        public void begin(Attributes attributes) {
            String attrName = attributes.getValue("attr-name");
            String propName = attributes.getValue("prop-name");
   
            SetNestedPropertiesRule rule = (SetNestedPropertiesRule) digester.peek();
            rule.addAlias(attrName, propName);
        }
    }
       
}
View Full Code Here

Examples of org.apache.commons.digester.SetPropertiesRule.addAlias()

        public void begin(Attributes attributes) {
            String attrName = attributes.getValue("attr-name");
            String propName = attributes.getValue("prop-name");
   
            SetPropertiesRule rule = (SetPropertiesRule) digester.peek();
            rule.addAlias(attrName, propName);
        }
    }

    /**
     * A rule for adding a attribute-property alias to the custom alias mappings of
View Full Code Here

Examples of org.apache.commons.digester.annotations.providers.SetPropertiesRuleProvider.addAlias()

        if (ruleProvider == null) {
            ruleProvider = new SetPropertiesRuleProvider();
            ruleSet.addRuleProvider(annotation.pattern(), ruleProvider);
        }

        ruleProvider.addAlias(annotation, element);
    }

}
View Full Code Here

Examples of org.apache.commons.digester3.binder.NestedPropertiesBuilder.addAlias()

    {
        String elementName = attributes.getValue( "attr-name" );
        String propertyName = attributes.getValue( "prop-name" );

        NestedPropertiesBuilder builder = getDigester().peek();
        builder.addAlias( elementName ).forProperty( propertyName );
    }

}
View Full Code Here

Examples of org.apache.commons.digester3.binder.SetPropertiesBuilder.addAlias()

            .setProperties();

        if ( annotation.attributeName() != null && annotation.attributeName().length() > 0
            && !element.getName().equals( annotation.attributeName() ) )
        {
            builder.addAlias( annotation.attributeName(), element.getName() );
        }
    }

}
View Full Code Here

Examples of org.apache.hadoop.hive.ql.optimizer.physical.BucketingSortingCtx.BucketCol.addAlias()

        // colInfos, and due to the limitations of dynamic partitioning, they will appear at the
        // end of the input schema.  Since the order of the columns hasn't changed, and no new
        // columns have been added/removed, it is safe to assume that these will have indexes
        // greater than or equal to colInfos.size().
        if (index < colInfos.size()) {
          bucketCol.addAlias(colInfos.get(index).getInternalName(), index);
        } else {
          return null;
        }
      }
      newBucketCols.add(bucketCol);
View Full Code Here

Examples of org.apache.hadoop.hive.ql.optimizer.physical.BucketingSortingCtx.SortCol.addAlias()

    for (int i = 0; i < sortCols.size(); i++) {
      SortCol sortCol = new SortCol(sortCols.get(i).getSortOrder());
      for (Integer index : sortCols.get(i).getIndexes()) {
        // The only time this condition should be false is in the case of dynamic partitioning
        if (index < colInfos.size()) {
          sortCol.addAlias(colInfos.get(index).getInternalName(), index);
        } else {
          return null;
        }
      }
      newSortCols.add(sortCol);
View Full Code Here

Examples of org.apache.jetspeed.om.portlet.EventDefinition.addAlias()

        event2.setValueType("java.lang.String");      

        QName q3 = new QName("http:portals.apache.org/events", "prefixedEvent", "x");
        EventDefinition event3 = app.addEventDefinition(q3);
        event3.setValueType("java.lang.String");      
        event3.addAlias(new QName("local-1"));
        event3.addAlias(new QName("http:2portals.apache.org/events", "local-2"));
        event3.addAlias(new QName("http:3portals.apache.org/events", "local-3", "p"));
        // test dupes
        event3.addAlias(new QName("local-1"));           
        event3.addAlias(new QName("http:2portals.apache.org/events", "local-2"));           
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.