Package jetbrains.buildServer
Class DefaultSpringAccessor
- java.lang.Object
-
- jetbrains.buildServer.DefaultSpringAccessor
-
- All Implemented Interfaces:
SpringAccessor
public class DefaultSpringAccessor extends java.lang.Object implements SpringAccessor
- Author:
- Eugene Petrenko Created: 10.02.2009 19:04:51
-
-
Field Summary
Fields Modifier and Type Field Description protected static SpringBeansFilter
ACCEPT_ALL
-
Constructor Summary
Constructors Constructor Description DefaultSpringAccessor(org.springframework.context.ApplicationContext context)
DefaultSpringAccessor(org.springframework.context.ApplicationContext context, SpringBeansFilter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> java.lang.String[]
getBeanNames(java.lang.Class<T> extensionClass)
<T> java.util.Collection<T>
getSpringBeansOfType(java.lang.Class<T> extensionClass, boolean autowireCandidatesOnly)
Returns spring beans of the specified type.
-
-
-
Field Detail
-
ACCEPT_ALL
protected static final SpringBeansFilter ACCEPT_ALL
-
-
Constructor Detail
-
DefaultSpringAccessor
public DefaultSpringAccessor(@NotNull org.springframework.context.ApplicationContext context)
-
DefaultSpringAccessor
public DefaultSpringAccessor(@NotNull org.springframework.context.ApplicationContext context, @NotNull SpringBeansFilter filter)
-
-
Method Detail
-
getSpringBeansOfType
@NotNull public <T> java.util.Collection<T> getSpringBeansOfType(@NotNull java.lang.Class<T> extensionClass, boolean autowireCandidatesOnly)
Description copied from interface:SpringAccessor
Returns spring beans of the specified type.- Specified by:
getSpringBeansOfType
in interfaceSpringAccessor
- Type Parameters:
T
- see extensionClass- Parameters:
extensionClass
- the type of a bean to returnautowireCandidatesOnly
- if true then beans marked with autowire-candidate="false" are not returned- Returns:
- see above
-
getBeanNames
@NotNull protected <T> java.lang.String[] getBeanNames(@NotNull java.lang.Class<T> extensionClass)
-
-