Package rocket.beans.rebind.alias

Examples of rocket.beans.rebind.alias.Alias


    context.branch();
    context.info("Processing all alias (" + aliases.size() + ") tags.");

    final Iterator<Alias> iterator = aliases.iterator();
    while (iterator.hasNext()) {
      final Alias alias = iterator.next();
      final String name = alias.getName();
      final String bean = alias.getBean();

      context.debug(name + "=" + bean);

      this.checkAlias(alias);
View Full Code Here


    final Iterator<Alias> beansIterator = this.getAliases().values().iterator();
    int aliasCount = 0;

    while (beansIterator.hasNext()) {
      final Alias alias = beansIterator.next();
      final String from = alias.getName();
      final String to = alias.getBean();
      body.register(from, to);

      context.debug(from + "=" + to);
      aliasCount++;
    }
View Full Code Here

   */
  protected Bean getBean(final String id) {
    String resolvedId = id;

    // check if $id is actually an alias.
    Alias alias = (Alias) this.getAliases().get(id);
    if (null != alias) {
      resolvedId = alias.getBean();
    }

    // now try and find the bean...
    final Bean bean = (Bean) this.getBeans().get(resolvedId);
    if (null == bean) {
View Full Code Here

      final AliasTag tag = new AliasTag();
      tag.setElement((Element) nodeList.item(i));
      tag.setFilename(filename);
      tag.setPlaceHolderResolver(placeHolderResolver);

      final Alias alias = new Alias();
      alias.setBean(tag.getBean());
      alias.setName(tag.getName());

      this.addAlias(alias);
    }
  }
View Full Code Here

TOP

Related Classes of rocket.beans.rebind.alias.Alias

Copyright © 2018 www.massapicom. 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.