Package br.gov.frameworkdemoiselle.context

Examples of br.gov.frameworkdemoiselle.context.CustomContext


  }
 
  public void initializeContexts(@Observes AfterBeanDiscovery event){
    //Cadastra os contextos contidos no demoiselle-core
    if (contexts==null || contexts.isEmpty()){
      CustomContext ctx;
     
      contexts = new ArrayList<CustomContext>();
     
      ctx = new TemporaryRequestContextImpl();
      contexts.add(ctx);
View Full Code Here


    return producedContext;
  }
 
  @SuppressWarnings("unchecked")
  private <T extends CustomContext> T getContext(Class<T> contextClass){
    CustomContext producedContext = null;
   
    ArrayList<CustomContext> selectableContexts = new ArrayList<CustomContext>();
   
    for (CustomContext context : getContexts()){
      if ( contextClass.isAssignableFrom( context.getClass() ) ){
View Full Code Here

   *
   * @return A context of a type compatible with the informed type, or <code>null</code> if there is no such context.
   */
  @SuppressWarnings("unchecked")
  public <T extends CustomContext> T getContext(Class<T> contextClass){
    CustomContext producedContext = null;
   
    ArrayList<CustomContext> selectableContexts = new ArrayList<CustomContext>();
   
    for (CustomContext context : getContexts()){
      if ( contextClass.isAssignableFrom( context.getClass() ) ){
View Full Code Here

   *
   * @return A context of a type compatible with the informed type, or <code>null</code> if there is no such context.
   */
  @SuppressWarnings("unchecked")
  public <T extends CustomContext> T getContext(Class<T> contextClass){
    CustomContext producedContext = null;
   
    ArrayList<CustomContext> selectableContexts = new ArrayList<CustomContext>();
   
    for (CustomContext context : getContexts()){
      if ( contextClass.isAssignableFrom( context.getClass() ) ){
View Full Code Here

  }
 
  public void initializeContexts(@Observes AfterBeanDiscovery event){
    //Cadastra os contextos contidos no demoiselle-core
    if (contexts==null || contexts.isEmpty()){
      CustomContext ctx;
     
      contexts = new ArrayList<CustomContext>();
     
      ctx = new TemporaryRequestContextImpl();
      contexts.add(ctx);
View Full Code Here

TOP

Related Classes of br.gov.frameworkdemoiselle.context.CustomContext

Copyright © 2018 www.massapicom. 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.