FileDocCategorySizeDatePackage
ValueEncInjector.javaAPI DocJBoss 4.2.12004Fri Jul 13 20:53:46 BST 2007org.jboss.injection

ValueEncInjector

public class ValueEncInjector extends Object implements EncInjector
Comment
author
Bill Burke
version
$Revision: 46510 $

Fields Summary
private Object
obj
private String
encName
private String
error
Constructors Summary
public ValueEncInjector(String name, Object obj, String error)

      this.obj = obj;
      this.encName = name;
      this.error = error;
   
Methods Summary
public voidinject(InjectionContainer container)

      try
      {
         Util.rebind(container.getEnc(), encName, obj);
      }
      catch (NamingException e)
      {
         throw new RuntimeException(new StringBuilder().append("could not bind enc name '").append(encName).append("' for ").append(error).append(" for container ").append(container.getIdentifier()).append(e.getMessage()).toString());
      }