Package br.com.caelum.vraptor.interceptor

Examples of br.com.caelum.vraptor.interceptor.TypeNameExtractor


    }

    @Override
    public <T> void instantiated(PicoContainer container, ComponentAdapter<T> componentAdapter,
        Constructor<T> constructor, Object instantiated, Object[] injected, long duration) {
      final TypeNameExtractor extractor = container.getComponent(TypeNameExtractor.class);
      Object object = componentAdapter.getComponentKey();
      if (object instanceof Class<?>) {
        Class<?> type = (Class<?>) object;
        setter.setAttribute(extractor.nameFor(type), instantiated);
      } else if (instantiated != null){
        setter.setAttribute(extractor.nameFor(instantiated.getClass()), instantiated);
      }
    }
View Full Code Here


    }

    @Override
    public <T> void instantiated(PicoContainer container, ComponentAdapter<T> componentAdapter,
        Constructor<T> constructor, Object instantiated, Object[] injected, long duration) {
      final TypeNameExtractor extractor = container.getComponent(TypeNameExtractor.class);
      Object object = componentAdapter.getComponentKey();
      if (object instanceof Class<?>) {
        Class<?> type = (Class<?>) object;
        setter.setAttribute(extractor.nameFor(type), instantiated);
      } else if (instantiated != null){
        setter.setAttribute(extractor.nameFor(instantiated.getClass()), instantiated);
      }
    }
View Full Code Here

    }

    @Override
    public <T> void instantiated(PicoContainer container, ComponentAdapter<T> componentAdapter,
        Constructor<T> constructor, Object instantiated, Object[] injected, long duration) {
      final TypeNameExtractor extractor = container.getComponent(TypeNameExtractor.class);
      Object object = componentAdapter.getComponentKey();
      if (object instanceof Class<?>) {
        Class<?> type = (Class<?>) object;
        setter.setAttribute(extractor.nameFor(type), instantiated);
      } else if (instantiated != null){
        setter.setAttribute(extractor.nameFor(instantiated.getClass()), instantiated);
      }
    }
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.interceptor.TypeNameExtractor

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.