@Test public void testGetInstance() { PushPolicyHandler handler = PushPolicyHandler.getInstance(); assertNotNull(handler); }
public static PushPolicyHandler getInstance() { try { Class<?> pushPolicyHandler = Class.forName( XACMLProperties.getProperty("pushPolicy.impl.className", PushPolicyHandler.class.getName())); PushPolicyHandler instance = (PushPolicyHandler) pushPolicyHandler.newInstance(); return instance; } catch (Exception e) { logger.error(e.getMessage(), e); } return null; }
PushPolicyHandler { public static PushPolicyHandler getInstance() { try { Class<?> pushPolicyHandler = Class.forName( XACMLProperties.getProperty("pushPolicy.impl.className", PushPolicyHandler.class.getName())); PushPolicyHandler instance = (PushPolicyHandler) pushPolicyHandler.newInstance(); return instance; } catch (Exception e) { logger.error(e.getMessage(), e); } return null; } }
PushPolicyHandler { public static PushPolicyHandler getInstance() { try { Class<?> pushPolicyHandler = Class.forName( XACMLProperties.getProperty("pushPolicy.impl.className", PushPolicyHandler.class.getName())); PushPolicyHandler instance = (PushPolicyHandler) pushPolicyHandler.newInstance(); return instance; } catch (Exception e) { logger.error(e.getMessage(), e); } return null; } @Autowired  PushPolicyHandler(CommonClassDao commonClassDao);  PushPolicyHandler(); }
PushPolicyHandler { public static PushPolicyHandler getInstance() { try { Class<?> pushPolicyHandler = Class.forName( XACMLProperties.getProperty("pushPolicy.impl.className", PushPolicyHandler.class.getName())); PushPolicyHandler instance = (PushPolicyHandler) pushPolicyHandler.newInstance(); return instance; } catch (Exception e) { logger.error(e.getMessage(), e); } return null; } @Autowired  PushPolicyHandler(CommonClassDao commonClassDao);  PushPolicyHandler(); void getActiveVersion(HttpServletRequest request, HttpServletResponse response); void getSelectedURI(HttpServletRequest request, HttpServletResponse response); boolean preSafetyCheck(StdPDPPolicy policy, String configHome); boolean preSafetyCheck(OnapPDPGroup policy, String configHome); static PushPolicyHandler getInstance(); }
PushPolicyHandler { public static PushPolicyHandler getInstance() { try { Class<?> pushPolicyHandler = Class.forName( XACMLProperties.getProperty("pushPolicy.impl.className", PushPolicyHandler.class.getName())); PushPolicyHandler instance = (PushPolicyHandler) pushPolicyHandler.newInstance(); return instance; } catch (Exception e) { logger.error(e.getMessage(), e); } return null; } @Autowired  PushPolicyHandler(CommonClassDao commonClassDao);  PushPolicyHandler(); void getActiveVersion(HttpServletRequest request, HttpServletResponse response); void getSelectedURI(HttpServletRequest request, HttpServletResponse response); boolean preSafetyCheck(StdPDPPolicy policy, String configHome); boolean preSafetyCheck(OnapPDPGroup policy, String configHome); static PushPolicyHandler getInstance();  }