org.eggframework2.controller
Class ElementClassHandler

java.lang.Object
  extended by org.eggframework2.controller.ElementClassHandler
All Implemented Interfaces:
ClassHandler

public class ElementClassHandler
extends java.lang.Object
implements ClassHandler

[PL] Klasa obsługi klas elementów, czyli klas implementujących interfejs IElement. Jeśli klasa implementuje ów interfejs to handler ten w metodzie handle tworzy jej instancję uruchamiając bezargumentowy konstruktor i zwraca.

Author:
Jacek Olszak

Constructor Summary
ElementClassHandler()
           
 
Method Summary
 IElement handle(java.lang.Class<? extends java.lang.Object> clazz, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext ctx, java.util.Map<java.lang.String,java.lang.Object> model)
           
 boolean supports(java.lang.Class<? extends java.lang.Object> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementClassHandler

public ElementClassHandler()
Method Detail

handle

public IElement handle(java.lang.Class<? extends java.lang.Object> clazz,
                       javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       javax.servlet.ServletContext ctx,
                       java.util.Map<java.lang.String,java.lang.Object> model)
                throws java.lang.InstantiationException,
                       java.lang.IllegalAccessException
Specified by:
handle in interface ClassHandler
Returns:
[PL] Null jeśli nie obsługuje tego typu klasy
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

supports

public boolean supports(java.lang.Class<? extends java.lang.Object> clazz)
Specified by:
supports in interface ClassHandler
Returns:
[PL] True jeśli obsługuje ten typ klasy


Copyright © 2010. All Rights Reserved.