Codota Logo
javax.enterprise.event
Code IndexAdd Codota to your IDE (free)

How to use javax.enterprise.event

Best Java code snippets using javax.enterprise.event (Showing top 20 results out of 4,824)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: javax.enterprise/cdi-api

/**
 * 
 * @param executor a specific {@link Executor} to handle observer notification
 * @return an immutable holder of an executor
 */
static NotificationOptions ofExecutor(Executor executor) {
  return builder().setExecutor(executor).build();
}
origin: javax.enterprise/cdi-api

/**
 * 
 * @param optionName name of the option to set
 * @param optionValue value for the option
 * @return an immutable holder of a single option
 */
static NotificationOptions of(String optionName, Object optionValue) {
  return builder().set(optionName, optionValue).build();
}
origin: javaee-samples/javaee7-samples

  @Override
  public void send(String message) {
    event.fire(message);
  }
}
origin: javaee-samples/javaee7-samples

void receive(@Observes String greet) {
  this.greet = greet;
}
origin: 4thline/cling

@Override
public void remoteDeviceDiscoveryStarted(Registry registry, RemoteDevice device) {
  remoteDeviceDiscoveryEvent.select(Phase.ALIVE).fire(
      new RemoteDeviceDiscovery(device)
  );
}
origin: javax.enterprise/cdi-api

/**
 * 
 * @return the options builder
 */
static Builder builder() {
  return new ImmutableNotificationOptions.Builder();
}
origin: javax.enterprise/cdi-api

public ImmutableNotificationOptions build() {
  return new ImmutableNotificationOptions(executor, options);
}
origin: javaee-samples/javaee7-samples

void receive(@Observes(notifyObserver = Reception.IF_EXISTS) String greet) {
  this.greet = greet;
}
origin: 4thline/cling

  @Override
  public void afterShutdown() {
    registryShutdownEvent.select(new AnnotationLiteral<After>() {
    }).fire(
        new RegistryShutdown()
    );
  }
}
origin: javaee-samples/javaee7-samples

  @Override
  public void send(String message) {
    event.fire(message);
  }
}
origin: jersey/jersey

public void observeCredit(@Observes @Credit Long amount) {
  current += amount;
}
origin: 4thline/cling

@Override
public void beforeShutdown(Registry registry) {
  registryShutdownEvent.select(new AnnotationLiteral<Before>() {
  }).fire(
      new RegistryShutdown()
  );
}
origin: 4thline/cling

@Override
public void remoteDeviceDiscoveryFailed(Registry registry, RemoteDevice device, Exception ex) {
  failedRemoteDeviceDiscoveryEvent.fire(
      new FailedRemoteDeviceDiscovery(device, ex)
  );
}
origin: jersey/jersey

public void observeDebit(@Observes @Debit Long amount) {
  current -= amount;
}
origin: 4thline/cling

@Override
public void localDeviceAdded(Registry registry, LocalDevice device) {
  localDeviceDiscoveryEvent.select(Phase.COMPLETE).fire(
      new LocalDeviceDiscovery(device)
  );
}
origin: wildfly/wildfly

  public void beforeBeanDiscovery(@Observes BeforeBeanDiscovery event, BeanManager manager) {
    event.addScope(ViewScoped.class, true, true);
  }
}
origin: 4thline/cling

@Override
public void localDeviceRemoved(Registry registry, LocalDevice device) {
  localDeviceDiscoveryEvent.select(Phase.BYEBYE).fire(
      new LocalDeviceDiscovery(device)
  );
}
origin: oracle/helidon

/**
 * Initializes the extension prior to bean discovery.
 *
 * @param discovery bean discovery event
 */
public void before(@Observes BeforeBeanDiscovery discovery) {
  // Register beans manually
  discovery.addAnnotatedType(JsonWebTokenProducer.class, "TokenProducer");
}
origin: 4thline/cling

@Override
public void remoteDeviceRemoved(Registry registry, RemoteDevice device) {
  remoteDeviceDiscoveryEvent.select(Phase.BYEBYE).fire(
      new RemoteDeviceDiscovery(device)
  );
}
origin: 4thline/cling

@Override
public void remoteDeviceAdded(Registry registry, RemoteDevice device) {
  remoteDeviceDiscoveryEvent.select(Phase.COMPLETE).fire(
      new RemoteDeviceDiscovery(device)
  );
}
javax.enterprise.event

Most used classes

  • Observes
  • Event
  • NotificationOptions
    Notification options are used to configure observer notification.
  • Reception
    Distinguishes conditional javax.enterprise.event.Observes from observer methods which are always not
  • NotificationOptions$Builder
    Notification options builder.
  • ImmutableNotificationOptions,
  • ObserverException,
  • TransactionPhase,
  • ObservesAsync
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