Package br.gov.frameworkdemoiselle.management

Examples of br.gov.frameworkdemoiselle.management.ManagedInvokationException


          try {
            logger.debug(bundle.getString("management-debug-invoking-operation", actionName, managedType
                .getType().getCanonicalName()));
            return method.getMethod().invoke(delegate, params);
          } catch (Exception e) {
            throw new ManagedInvokationException(bundle.getString("management-invoke-error", actionName), e);
          }
        } else {
          throw new ManagedInvokationException(bundle.getString("management-invoke-error", actionName));
        }
      } finally {
        deactivateContexts(managedType.getType());
      }
    } else {
      throw new ManagedInvokationException(bundle.getString("management-type-not-found"));
    }
  }
View Full Code Here


        try {
          Object delegate = Beans.getReference(managedType.getType() , managedType.getQualifiers());

          return getterMethod.invoke(delegate, (Object[]) null);
        } catch (Exception e) {
          throw new ManagedInvokationException(bundle.getString("management-invoke-error", getterMethod.getName()),
              e);
        } finally {
          deactivateContexts(managedType.getType());
        }
      } else {
        throw new ManagedAttributeNotFoundException(bundle.getString("management-read-value-error", propertyName));
      }
    } else {
      throw new ManagedInvokationException(bundle.getString("management-type-not-found"));
    }
  }
View Full Code Here

          notificationManager.sendNotification(notification);

        } catch (ConstraintViolationException ce) {
          throw ce;
        } catch (Exception e) {
          throw new ManagedInvokationException(bundle.getString("management-invoke-error", method.getName()), e);
        } finally {
          deactivateContexts(managedType.getType());
        }

      } else {
        throw new ManagedAttributeNotFoundException(bundle.getString("management-write-value-error", propertyName));
      }
    } else {
      throw new ManagedInvokationException(bundle.getString("management-type-not-found"));
    }

  }
View Full Code Here

          try {
            logger.debug(bundle.getString("management-debug-invoking-operation", actionName, managedType
                .getType().getCanonicalName()));
            return method.getMethod().invoke(delegate, params);
          } catch (Exception e) {
            throw new ManagedInvokationException(bundle.getString("management-invoke-error", actionName), e);
          }
        } else {
          throw new ManagedInvokationException(bundle.getString("management-invoke-error", actionName));
        }
      } finally {
        deactivateContexts(managedType.getType());
      }
    } else {
      throw new ManagedInvokationException(bundle.getString("management-type-not-found"));
    }
  }
View Full Code Here

        try {
          Object delegate = Beans.getReference(managedType.getType() , managedType.getQualifiers());

          return getterMethod.invoke(delegate, (Object[]) null);
        } catch (Exception e) {
          throw new ManagedInvokationException(bundle.getString("management-invoke-error", getterMethod.getName()),
              e);
        } finally {
          deactivateContexts(managedType.getType());
        }
      } else {
        throw new ManagedAttributeNotFoundException(bundle.getString("management-read-value-error", propertyName));
      }
    } else {
      throw new ManagedInvokationException(bundle.getString("management-type-not-found"));
    }
  }
View Full Code Here

          notificationManager.sendNotification(notification);

        } catch (ConstraintViolationException ce) {
          throw ce;
        } catch (Exception e) {
          throw new ManagedInvokationException(bundle.getString("management-invoke-error", method.getName()), e);
        } finally {
          deactivateContexts(managedType.getType());
        }

      } else {
        throw new ManagedAttributeNotFoundException(bundle.getString("management-write-value-error", propertyName));
      }
    } else {
      throw new ManagedInvokationException(bundle.getString("management-type-not-found"));
    }

  }
View Full Code Here

TOP

Related Classes of br.gov.frameworkdemoiselle.management.ManagedInvokationException

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.