Examples of AdvisedSupport


Examples of org.jboss.jms.server.endpoint.advised.AdvisedSupport

      // resets the object counter, so a different object is registered under the id of the old
      // object. Remoting then times out the old connection and dereigsters the new object which is
      // registered under the same id.
      // See http://jira.jboss.com/jira/browse/JBMESSAGING-812
         
      AdvisedSupport advised = (AdvisedSupport)(targets.get(id));
     
      if (advised == null)
      {
         // This can happen due to http://jira.jboss.com/jira/browse/JBMESSAGING-812
         log.warn("Cannot find object with id " + id + " to register");
         return false;
      }
          
      if (advised.getEndpoint() != endpoint)
      {
         log.warn("The object you are trying to deregister is not the same as the one you registered!");
         return false;
      }
      else
View Full Code Here

Examples of org.jboss.jms.server.endpoint.advised.AdvisedSupport

      // resets the object counter, so a different object is registered under the id of the old
      // object. Remoting then times out the old connection and dereigsters the new object which is
      // registered under the same id.
      // See http://jira.jboss.com/jira/browse/JBMESSAGING-812
         
      AdvisedSupport advised = (AdvisedSupport)(targets.get(id));
     
      if (advised == null)
      {
         // This can happen due to http://jira.jboss.com/jira/browse/JBMESSAGING-812
         log.warn("Cannot find object with id " + id + " to register");
         return false;
      }
          
      if (advised.getEndpoint() != endpoint)
      {
         log.warn("The object you are trying to deregister is not the same as the one you registered!");
         return false;
      }
      else
View Full Code Here

Examples of org.jboss.jms.server.endpoint.advised.AdvisedSupport

/* 60 */     this.targets.put(id, obj);
/*    */   }
/*    */
/*    */   public boolean unregisterTarget(String id, Object endpoint)
/*    */   {
/* 74 */     AdvisedSupport advised = (AdvisedSupport)(AdvisedSupport)this.targets.get(id);
/*    */
/* 76 */     if (advised == null)
/*    */     {
/* 79 */       log.warn("Cannot find object with id " + id + " to register");
/* 80 */       return false;
/*    */     }
/*    */
/* 83 */     if (advised.getEndpoint() != endpoint)
/*    */     {
/* 85 */       log.warn("The object you are trying to deregister is not the same as the one you registered!");
/* 86 */       return false;
/*    */     }
/*    */
View Full Code Here

Examples of org.springframework.aop.framework.AdvisedSupport

  @Before
  public void setUp() {
    converter = new Jaxb2RootElementHttpMessageConverter();
    rootElement = new RootElement();
    DefaultAopProxyFactory proxyFactory = new DefaultAopProxyFactory();
    AdvisedSupport advisedSupport = new AdvisedSupport();
    advisedSupport.setTarget(rootElement);
    advisedSupport.setProxyTargetClass(true);
    AopProxy proxy = proxyFactory.createAopProxy(advisedSupport);
    rootElementCglib = (RootElement) proxy.getProxy();
  }
View Full Code Here

Examples of org.springframework.aop.framework.AdvisedSupport

    super(clazz);
  }

  @Override
  public void run(RunNotifier notifier) {
    AdvisedSupport config = new AdvisedSupport();
    config.setTarget(notifier);
    config.addAdvice(new org.aopalliance.intercept.MethodInterceptor() {
      public Object invoke(MethodInvocation invocation) throws Throwable {
        if ("fireTestFailure".equals(invocation.getMethod().getName())) {
          Failure failure = (Failure) invocation.getArguments()[0];
          if (failure.getException() instanceof NotSwallowedException) {
            // We expect this
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.