Package br.com.caelum.vraptor.controller

Examples of br.com.caelum.vraptor.controller.BeanClass


  @Override
  public Object get(Object key) {
    logger.debug("getting key {}", key);
   
    BeanClass beanClass = (BeanClass) key;
    final Class<?> controller = beanClass.getType();
    Class<?> linkToInterface = interfaces.get(controller);
    if (linkToInterface == null) {
      logger.debug("interface not found, creating one {}", controller);
     
      lock.lock();
View Full Code Here


  @Override
  public Object get(Object key) {
    logger.debug("getting key {}", key);
   
    BeanClass beanClass = (BeanClass) key;
    final Class<?> controller = beanClass.getType();
    Class<?> linkToInterface = interfaces.get(controller);
    if (linkToInterface == null) {
      logger.debug("interface not found, creating one {}", controller);
     
      lock.lock();
View Full Code Here

    if(controllerMethodContainsSpecificHandler(controllerMethod)){
      HandledBy handledBy = controllerMethod.getMethod().getAnnotation(HandledBy.class);
      return container.instanceFor(handledBy.value());
    }
   
    BeanClass resource = controllerMethod.getController();
    if(resourceClassContainsSpecificHandler(resource)){
      HandledBy handledBy = resource.getType().getAnnotation(HandledBy.class);
      return container.instanceFor(handledBy.value());
    }
 
    if(ruleContainsSpecificHandler(rule)){
      HandledBy handledBy = rule.getClass().getAnnotation(HandledBy.class);
View Full Code Here

  @Override
  public Object get(Object key) {
    logger.debug("getting key {}", key);
   
    BeanClass beanClass = (BeanClass) key;
    final Class<?> controller = beanClass.getType();
    Class<?> linkToInterface = interfaces.get(controller);
    if (linkToInterface == null) {
      logger.debug("interface not found, creating one {}", controller);
     
      lock.lock();
View Full Code Here

    return routesMatchingURI;
  }

  public void cacheRoute(Route r) {
    ControllerMethod controllerMethod = r.getControllerMethod();
    BeanClass controller = controllerMethod.getController();
    Invocation invocation = new Invocation(controller.getType(), controllerMethod.getMethod());
    cache.write(invocation, r);
  }
View Full Code Here

    return routesMatchingURI;
  }

  public void cacheRoute(Route r) {
    ControllerMethod controllerMethod = r.getControllerMethod();
    BeanClass controller = controllerMethod.getController();
    Invocation invocation = new Invocation(controller.getType(), controllerMethod.getMethod());
    cache.write(invocation, r);
  }
View Full Code Here

  @Override
  public Object get(Object key) {
    logger.debug("getting key {}", key);
   
    BeanClass beanClass = (BeanClass) key;
    final Class<?> controller = beanClass.getType();
    Class<?> linkToInterface = interfaces.get(controller);
    if (linkToInterface == null) {
      logger.debug("interface not found, creating one {}", controller);

      lock.lock();
View Full Code Here

    return routesMatchingURI;
  }

  public void cacheRoute(Route r) {
    ControllerMethod controllerMethod = r.getControllerMethod();
    BeanClass controller = controllerMethod.getController();
    Invocation invocation = new Invocation(controller.getType(), controllerMethod.getMethod());
    cache.putIfAbsent(invocation, r);
  }
View Full Code Here

  private Lock lock = new ReentrantLock();

  @Override
  public Object get(Object key) {
    BeanClass beanClass = (BeanClass) key;
    final Class<?> controller = beanClass.getType();
    Class<?> linkToInterface = interfaces.get(controller);
    if (linkToInterface == null) {
      lock.lock();
      try {
        linkToInterface = interfaces.get(controller);
View Full Code Here

  @Override
  public Object get(Object key) {
    logger.debug("getting key {}", key);
   
    BeanClass beanClass = (BeanClass) key;
    final Class<?> controller = beanClass.getType();
    Class<?> linkToInterface = interfaces.get(controller);
    if (linkToInterface == null) {
      logger.debug("interface not found, creating one {}", controller);
     
      lock.lock();
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.controller.BeanClass

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.