Codota Logo
MethodIdentifier.equals
Code IndexAdd Codota 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)

  • Common ways to obtain MethodIdentifier
private void myMethod () {
MethodIdentifier m =
  • Codota IconMethod method;MethodIdentifier.getIdentifierForMethod(method)
  • Codota IconString name;MethodIdentifier.getIdentifier(void.class, name)
  • Codota IconInterceptorClassDescription interceptorClassDescription;interceptorClassDescription.getAroundTimeout()
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getSystemService (Context)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now