org.springframework.beans.factory.annotation.Lookup Java Examples

The following examples show how to use org.springframework.beans.factory.annotation.Lookup. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CommandManager.java    From Spring with Apache License 2.0 4 votes vote down vote up
@Lookup
public Command createCommand() {
	return null;
}
 
Example #2
Source File: StudentServices.java    From tutorials with MIT License 4 votes vote down vote up
@Lookup
protected abstract SchoolNotification getNotification(String name);
 
Example #3
Source File: Student.java    From tutorials with MIT License 4 votes vote down vote up
/**
 * Injects a prototype bean SchoolNotification into Singleton student
 */
@Lookup
public SchoolNotification getNotification(String name) {
    // spring overrides and returns a SchoolNotification instance
    return null;
}
 
Example #4
Source File: StudentServices.java    From tutorials with MIT License 4 votes vote down vote up
@Lookup
protected abstract SchoolNotification getNotification(String name);
 
Example #5
Source File: Student.java    From tutorials with MIT License 4 votes vote down vote up
/**
 * Injects a prototype bean SchoolNotification into Singleton student
 */
@Lookup
public SchoolNotification getNotification(String name) {
    // spring overrides and returns a SchoolNotification instance
    return null;
}
 
Example #6
Source File: SingletonLookupBean.java    From tutorials with MIT License 4 votes vote down vote up
@Lookup
public PrototypeBean getPrototypeBean() {
    return null;
}
 
Example #7
Source File: AnnotationLookupBootstrap.java    From thinking-in-spring-boot-samples with Apache License 2.0 4 votes vote down vote up
@Lookup("helloWorld2")
@Bean("helloWorld")
public String helloWorld() {
    return "Hello,World";
}
 
Example #8
Source File: CommandManager.java    From Spring with Apache License 2.0 4 votes vote down vote up
@Lookup
abstract Command createCommand();
 
Example #9
Source File: ConfigurationClassPostProcessorTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Lookup
public abstract TestBean getTestBean();
 
Example #10
Source File: FooServiceImpl.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Lookup
protected abstract FooDao fooDao();
 
Example #11
Source File: DynamicTagToDynTagDtoConverter.java    From openemm with GNU Affero General Public License v3.0 4 votes vote down vote up
@Lookup
public ExtendedConversionService getExtendedConversionService() {
    return null;
}
 
Example #12
Source File: ComMailingBaseServiceImpl.java    From openemm with GNU Affero General Public License v3.0 4 votes vote down vote up
@Lookup
public DefaultCalculation getDefaultCalculation(){
    return null;
}
 
Example #13
Source File: ComMailingBaseServiceImpl.java    From openemm with GNU Affero General Public License v3.0 4 votes vote down vote up
@Lookup
public UnsavedChanges getForUnsavedChanges(){
    return null;
}
 
Example #14
Source File: DtsRemotingServer.java    From dts with Apache License 2.0 4 votes vote down vote up
@Lookup(value = "dtsMessageProcessor")
protected DtsMessageProcessor createMessageProcessor() {
    return null;
}
 
Example #15
Source File: DtsMessageProcessor.java    From dts with Apache License 2.0 4 votes vote down vote up
@Lookup
protected DtsServerMessageHandler createMessageHandler() {
    return null;
}
 
Example #16
Source File: ConfigurationClassPostProcessorTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Lookup
public abstract TestBean getTestBean();
 
Example #17
Source File: FooServiceImpl.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Lookup
protected abstract FooDao fooDao();
 
Example #18
Source File: ClassPathScanningCandidateComponentProvider.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Determine whether the given bean definition qualifies as candidate.
 * <p>The default implementation checks whether the class is not an interface
 * and not dependent on an enclosing class.
 * <p>Can be overridden in subclasses.
 * @param beanDefinition the bean definition to check
 * @return whether the bean definition qualifies as a candidate component
 */
protected boolean isCandidateComponent(AnnotatedBeanDefinition beanDefinition) {
	AnnotationMetadata metadata = beanDefinition.getMetadata();
	return (metadata.isIndependent() && (metadata.isConcrete() ||
			(metadata.isAbstract() && metadata.hasAnnotatedMethods(Lookup.class.getName()))));
}
 
Example #19
Source File: ClassPathScanningCandidateComponentProvider.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Determine whether the given bean definition qualifies as candidate.
 * <p>The default implementation checks whether the class is not an interface
 * and not dependent on an enclosing class.
 * <p>Can be overridden in subclasses.
 * @param beanDefinition the bean definition to check
 * @return whether the bean definition qualifies as a candidate component
 */
protected boolean isCandidateComponent(AnnotatedBeanDefinition beanDefinition) {
	AnnotationMetadata metadata = beanDefinition.getMetadata();
	return (metadata.isIndependent() && (metadata.isConcrete() ||
			(metadata.isAbstract() && metadata.hasAnnotatedMethods(Lookup.class.getName()))));
}
 
Example #20
Source File: BaiduUidStrategy.java    From super-cloudops with Apache License 2.0 2 votes vote down vote up
/**
 * @方法名称 getGenerator
 * @功能描述
 * 
 *       <pre>
 * 多实例返回uidGenerator(返回值不重要,动态注入)
 *       </pre>
 * 
 * @return
 */
@Lookup
public UidGenerator getGenerator() {
	return null;
}
 
Example #21
Source File: BaiduUidStrategy.java    From ecp-uid with Apache License 2.0 2 votes vote down vote up
/**
 * @方法名称 getGenerator
 * @功能描述 <pre>多实例返回uidGenerator(返回值不重要,动态注入)</pre>
 * @return
 */
@Lookup
public UidGenerator getGenerator() {
  return null;
}
 
Example #22
Source File: ClassPathScanningCandidateComponentProvider.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Determine whether the given bean definition qualifies as candidate.
 * <p>The default implementation checks whether the class is not an interface
 * and not dependent on an enclosing class.
 * <p>Can be overridden in subclasses.
 * @param beanDefinition the bean definition to check
 * @return whether the bean definition qualifies as a candidate component
 */
protected boolean isCandidateComponent(AnnotatedBeanDefinition beanDefinition) {
	AnnotationMetadata metadata = beanDefinition.getMetadata();
	return (metadata.isIndependent() && (metadata.isConcrete() ||
			(metadata.isAbstract() && metadata.hasAnnotatedMethods(Lookup.class.getName()))));
}