@Test(expected = InternalException.class) public void BeanFactoryが設定されていない場合はafterPrpertiesSetを実行できない() throws Exception { interceptor.afterPropertiesSet(); }
@Override public void afterPropertiesSet() throws Exception { if (profill == null) { if (factory == null) throw new InternalException(ProfillInterceptor.class, "E-PROFILL#0004"); profill = factory.getBean(Profill.class); } profill.makeSafeAgainstMultiThreadedAccess(); if (parameterAnnotationRequired && !Arrays.isEmpty(markerAnnotationTypes)) { markers = Arrays.gen(markerAnnotationTypes.length, new GenCall<Class<? extends Annotation>>() { @Override public Class<? extends Annotation> gen(int index, int total) { return Classes.forName(markerAnnotationTypes[index]); } }); } }
ProfillInterceptor implements MethodInterceptor, BeanFactoryAware, InitializingBean { @Override public void afterPropertiesSet() throws Exception { if (profill == null) { if (factory == null) throw new InternalException(ProfillInterceptor.class, "E-PROFILL#0004"); profill = factory.getBean(Profill.class); } profill.makeSafeAgainstMultiThreadedAccess(); if (parameterAnnotationRequired && !Arrays.isEmpty(markerAnnotationTypes)) { markers = Arrays.gen(markerAnnotationTypes.length, new GenCall<Class<? extends Annotation>>() { @Override public Class<? extends Annotation> gen(int index, int total) { return Classes.forName(markerAnnotationTypes[index]); } }); } } }
ProfillInterceptor implements MethodInterceptor, BeanFactoryAware, InitializingBean { @Override public void afterPropertiesSet() throws Exception { if (profill == null) { if (factory == null) throw new InternalException(ProfillInterceptor.class, "E-PROFILL#0004"); profill = factory.getBean(Profill.class); } profill.makeSafeAgainstMultiThreadedAccess(); if (parameterAnnotationRequired && !Arrays.isEmpty(markerAnnotationTypes)) { markers = Arrays.gen(markerAnnotationTypes.length, new GenCall<Class<? extends Annotation>>() { @Override public Class<? extends Annotation> gen(int index, int total) { return Classes.forName(markerAnnotationTypes[index]); } }); } } ProfillInterceptor(); }
ProfillInterceptor implements MethodInterceptor, BeanFactoryAware, InitializingBean { @Override public void afterPropertiesSet() throws Exception { if (profill == null) { if (factory == null) throw new InternalException(ProfillInterceptor.class, "E-PROFILL#0004"); profill = factory.getBean(Profill.class); } profill.makeSafeAgainstMultiThreadedAccess(); if (parameterAnnotationRequired && !Arrays.isEmpty(markerAnnotationTypes)) { markers = Arrays.gen(markerAnnotationTypes.length, new GenCall<Class<? extends Annotation>>() { @Override public Class<? extends Annotation> gen(int index, int total) { return Classes.forName(markerAnnotationTypes[index]); } }); } } ProfillInterceptor(); @Override Object invoke(MethodInvocation invocation); @Override void setBeanFactory(BeanFactory beanFactory); @Override void afterPropertiesSet(); Profill getProfill(); void setProfill(Profill profill); boolean isParameterAnnotationRequired(); void setParameterAnnotationRequired(boolean parameterAnnotationRequired); String[] getMarkerAnnotationTypes(); void setMarkerAnnotationTypes(String[] markerAnnotationTypes); }
ProfillInterceptor implements MethodInterceptor, BeanFactoryAware, InitializingBean { @Override public void afterPropertiesSet() throws Exception { if (profill == null) { if (factory == null) throw new InternalException(ProfillInterceptor.class, "E-PROFILL#0004"); profill = factory.getBean(Profill.class); } profill.makeSafeAgainstMultiThreadedAccess(); if (parameterAnnotationRequired && !Arrays.isEmpty(markerAnnotationTypes)) { markers = Arrays.gen(markerAnnotationTypes.length, new GenCall<Class<? extends Annotation>>() { @Override public Class<? extends Annotation> gen(int index, int total) { return Classes.forName(markerAnnotationTypes[index]); } }); } } ProfillInterceptor(); @Override Object invoke(MethodInvocation invocation); @Override void setBeanFactory(BeanFactory beanFactory); @Override void afterPropertiesSet(); Profill getProfill(); void setProfill(Profill profill); boolean isParameterAnnotationRequired(); void setParameterAnnotationRequired(boolean parameterAnnotationRequired); String[] getMarkerAnnotationTypes(); void setMarkerAnnotationTypes(String[] markerAnnotationTypes);  }