org.springframework.beans.factory.config.AbstractFactoryBean Java Examples

The following examples show how to use org.springframework.beans.factory.config.AbstractFactoryBean. 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: Spr15275Tests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Bean
public FactoryBean<Foo> foo() {
	return new AbstractFactoryBean<Foo>() {
		@Override
		public Foo createInstance() {
			return new Foo("x");
		}
		@Override
		public Class<?> getObjectType() {
			return Foo.class;
		}
	};
}
 
Example #2
Source File: Spr15275Tests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Bean
public FactoryBean<FooInterface> foo() {
	return new AbstractFactoryBean<FooInterface>() {
		@Override
		public FooInterface createInstance() {
			return new Foo("x");
		}
		@Override
		public Class<?> getObjectType() {
			return FooInterface.class;
		}
	};
}
 
Example #3
Source File: Spr15275Tests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Bean
public AbstractFactoryBean<FooInterface> foo() {
	return new AbstractFactoryBean<FooInterface>() {
		@Override
		public FooInterface createInstance() {
			return new Foo("x");
		}
		@Override
		public Class<?> getObjectType() {
			return Foo.class;
		}
	};
}
 
Example #4
Source File: Spr15275Tests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Bean
public FactoryBean<Foo> foo() {
	return new AbstractFactoryBean<Foo>() {
		@Override
		public Foo createInstance() {
			return new Foo("x");
		}
		@Override
		public Class<?> getObjectType() {
			return Foo.class;
		}
	};
}
 
Example #5
Source File: Spr15275Tests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Bean
public FactoryBean<FooInterface> foo() {
	return new AbstractFactoryBean<FooInterface>() {
		@Override
		public FooInterface createInstance() {
			return new Foo("x");
		}
		@Override
		public Class<?> getObjectType() {
			return FooInterface.class;
		}
	};
}
 
Example #6
Source File: Spr15275Tests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Bean
public AbstractFactoryBean<FooInterface> foo() {
	return new AbstractFactoryBean<FooInterface>() {
		@Override
		public FooInterface createInstance() {
			return new Foo("x");
		}
		@Override
		public Class<?> getObjectType() {
			return Foo.class;
		}
	};
}