Examples of AfterCreateEvent


Examples of com.sun.jsftemplating.layout.event.AfterCreateEvent

     @return  The result of invoking the handlers (null by default)
     */
    public Object afterCreate(FacesContext context, UIComponent component) {
  // Invoke "afterCreate" handlers
  return dispatchHandlers(
    context, AFTER_CREATE, new AfterCreateEvent(component));
    }
View Full Code Here

Examples of org.springframework.data.rest.core.event.AfterCreateEvent

    appCtx.publishEvent(new BeforeCreateEvent(person));
  }

  @Test(expected = RuntimeException.class)
  public void shouldDispatchAfterCreate() throws Exception {
    appCtx.publishEvent(new AfterCreateEvent(person));
  }
View Full Code Here

Examples of org.springframework.data.rest.core.event.AfterCreateEvent

  private ResponseEntity<ResourceSupport> createAndReturn(Object domainObject, RepositoryInvoker invoker,
      PersistentEntityResourceAssembler assembler) {

    publisher.publishEvent(new BeforeCreateEvent(domainObject));
    Object savedObject = invoker.invokeSave(domainObject);
    publisher.publishEvent(new AfterCreateEvent(savedObject));

    HttpHeaders headers = new HttpHeaders();
    addLocationHeader(headers, assembler, savedObject);

    PersistentEntityResource resource = config.isReturnBodyOnCreate() ? assembler.toFullResource(savedObject) : null;
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.