| | |
| | | |
| | | /* -------------- ScannerListener Implementierung --------------- */ |
| | | @Override |
| | | public void annotationFound(Class foundClass, Handler h, String contextName) { |
| | | wire(h, foundClass, contextName); |
| | | public void annotationFound(Class foundClass, Object[] params) { |
| | | Handler h = null; |
| | | String contextName = null; |
| | | for(Object param : params) { |
| | | if(param instanceof Handler) { |
| | | h = (Handler) param; |
| | | } else if(param instanceof String) { |
| | | contextName = (String) param; |
| | | } |
| | | } |
| | | if(h == null || contextName == null) { |
| | | Logger.getLogger(Factory.class.getName()).log(Level.FINER, "Handler oder contextName ist null"); |
| | | } else { |
| | | wire(h, foundClass, contextName); |
| | | } |
| | | } |
| | | } |