Spring Framework AliasDefinition - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework AliasDefinition class.

This code example shows how to use the following methods:getAlias, getBeanName
public class BeanAlias extends AbstractBeansModelElement implements IBeanAlias { 
 
	private String beanName;
 
	public BeanAlias(IBeansConfig config, AliasDefinition definition) {
		super(config, definition.getAlias(), definition);
		beanName = definition.getBeanName();
	} 
 
	public int getElementType() { 
		return IBeansModelElementTypes.ALIAS_TYPE; 
	} 
 
	public String getBeanName() {
		return beanName;
	} 
 
	@Override 
	public boolean equals(Object other) {
		if (this == other) {
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getBeanName
		return (ComponentDefinition[]) collection.toArray(new ComponentDefinition[collection.size()]);
	} 
 
	@Override 
	public void aliasRegistered(AliasDefinition aliasDefinition) {
		List aliases = (List) this.aliasMap.get(aliasDefinition.getBeanName());
		if(aliases == null) {
			aliases = new ArrayList();
			this.aliasMap.put(aliasDefinition.getBeanName(), aliases);
		} 
		aliases.add(aliasDefinition);
	} 
 
	public List getAliases(String beanName) {
		List aliases = (List) this.aliasMap.get(beanName);
		return aliases == null ? null : Collections.unmodifiableList(aliases);
	} 
 
	@Override 
	public void importProcessed(ImportDefinition importDefinition) {
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Spring Framework AliasDefinition Methods: