Tabnine Logo
MethodIdentifier.equals
Code IndexAdd Tabnine to your IDE (free)

How to use
equals
method
in
org.jboss.invocation.proxy.MethodIdentifier

Best Java code snippets using org.jboss.invocation.proxy.MethodIdentifier.equals (Showing top 8 results out of 315)

origin: wildfly/wildfly

@Override
public boolean equals(final Object o) {
  if (this == o) return true;
  if (o == null || getClass() != o.getClass()) return false;
  final MethodTransactionAttributeKey that = (MethodTransactionAttributeKey) o;
  if (!methodIdentifier.equals(that.methodIdentifier)) return false;
  if (methodIntf != that.methodIntf) return false;
  return true;
}
origin: wildfly/wildfly

@Override
public boolean equals(Object o) {
  if (this == o) return true;
  if (o == null || getClass() != o.getClass()) return false;
  StatefulRemoveMethod that = (StatefulRemoveMethod) o;
  if (!methodIdentifier.equals(that.methodIdentifier)) return false;
  return true;
}
origin: wildfly/wildfly

  @Override
  public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription description, ViewConfiguration configuration) throws DeploymentUnitProcessingException {
    final StatefulComponentDescription statefulComponentDescription = (StatefulComponentDescription) componentConfiguration.getComponentDescription();
    final Collection<StatefulRemoveMethod> removeMethods = statefulComponentDescription.getRemoveMethods();
    if (removeMethods.isEmpty()) {
      return;
    }
    for (final Method viewMethod : configuration.getProxyFactory().getCachedMethods()) {
      final MethodIdentifier viewMethodIdentifier = MethodIdentifier.getIdentifierForMethod(viewMethod);
      for (final StatefulRemoveMethod removeMethod : removeMethods) {
        if (removeMethod.methodIdentifier.equals(viewMethodIdentifier)) {
          //we do not want to add this if it is the Ejb(Local)Object.remove() method, as that is handed elsewhere
          final boolean object = EJBObject.class.isAssignableFrom(configuration.getViewClass()) || EJBLocalObject.class.isAssignableFrom(configuration.getViewClass());
          if (!object || !viewMethodIdentifier.getName().equals("remove") || viewMethodIdentifier.getParameterTypes().length != 0) {
            configuration.addViewInterceptor(viewMethod, new ImmediateInterceptorFactory(new StatefulRemoveInterceptor(removeMethod.retainIfException)), InterceptorOrder.View.SESSION_REMOVE_INTERCEPTOR);
          }
          break;
        }
      }
    }
  }
});
origin: org.jboss.invocation/jboss-invocation

/**
 * Determine whether this object is equal to another.
 *
 * @param other the other object
 * @return {@code true} if they are equal, {@code false} otherwise
 */
public boolean equals(Object other) {
  return other instanceof MethodIdentifier && equals((MethodIdentifier)other);
}
origin: org.jboss.as/jboss-as-ejb3

@Override
public boolean equals(final Object o) {
  if (this == o) return true;
  if (o == null || getClass() != o.getClass()) return false;
  final MethodTransactionAttributeKey that = (MethodTransactionAttributeKey) o;
  if (!methodIdentifier.equals(that.methodIdentifier)) return false;
  if (methodIntf != that.methodIntf) return false;
  return true;
}
origin: org.jboss.as/jboss-as-ejb3

@Override
public boolean equals(Object o) {
  if (this == o) return true;
  if (o == null || getClass() != o.getClass()) return false;
  StatefulRemoveMethod that = (StatefulRemoveMethod) o;
  if (!methodIdentifier.equals(that.methodIdentifier)) return false;
  return true;
}
origin: org.jboss.as/jboss-as-ejb3

@Override
public boolean equals(Object o) {
  if (this == o) return true;
  if (o == null || getClass() != o.getClass()) return false;
  EJBMethodIdentifier that = (EJBMethodIdentifier) o;
  if (!methodDeclaringClass.equals(that.methodDeclaringClass)) return false;
  if (!methodIdentifier.equals(that.methodIdentifier)) return false;
  return true;
}
origin: org.jboss.as/jboss-as-ejb3

  @Override
  public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription description, ViewConfiguration configuration) throws DeploymentUnitProcessingException {
    final StatefulComponentDescription statefulComponentDescription = (StatefulComponentDescription) componentConfiguration.getComponentDescription();
    final Collection<StatefulRemoveMethod> removeMethods = statefulComponentDescription.getRemoveMethods();
    if (removeMethods.isEmpty()) {
      return;
    }
    for (final Method viewMethod : configuration.getProxyFactory().getCachedMethods()) {
      final MethodIdentifier viewMethodIdentifier = MethodIdentifier.getIdentifierForMethod(viewMethod);
      for (final StatefulRemoveMethod removeMethod : removeMethods) {
        if (removeMethod.methodIdentifier.equals(viewMethodIdentifier)) {
          //we do not want to add this if it is the Ejb(Local)Object.remove() method, as that is handed elsewhere
          final boolean object = EJBObject.class.isAssignableFrom(configuration.getViewClass()) || EJBLocalObject.class.isAssignableFrom(configuration.getViewClass());
          if (!object || !viewMethodIdentifier.getName().equals("remove") || viewMethodIdentifier.getParameterTypes().length != 0) {
            configuration.addViewInterceptor(viewMethod, new ImmediateInterceptorFactory(new StatefulRemoveInterceptor(removeMethod.retainIfException)), InterceptorOrder.View.SESSION_REMOVE_INTERCEPTOR);
          }
          break;
        }
      }
    }
  }
});
org.jboss.invocation.proxyMethodIdentifierequals

Javadoc

Determine whether this object is equal to another.

Popular methods of MethodIdentifier

  • getIdentifier
    Construct a new instance using string names for the return and parameter types.
  • getIdentifierForMethod
    Get an identifier for the given reflection method.
  • getName
    Get the method name.
  • getParameterTypes
    Get the parameter type names, as strings.
  • getReturnType
    Get the method return type name, as a string.
  • hashCode
    Get the hash code for this method identifier. The hash code is equal to: n * 7 + (r * 7 + a) whe
  • <init>
  • calculateHash
  • namesOf
  • typesOf

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Option (scala)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now