org.springframework.context.annotation
Class ConfigurationClassMethod

java.lang.Object
  extended by org.springframework.context.annotation.ConfigurationClassMethod

final class ConfigurationClassMethod
extends java.lang.Object

Represents a Configuration class method marked with the Bean annotation.

Since:
3.0
Author:
Chris Beams, Juergen Hoeller
See Also:
ConfigurationClass, ConfigurationClassParser, ConfigurationClassBeanDefinitionReader

Nested Class Summary
private  class ConfigurationClassMethod.NonOverridableMethodError
          Bean methods must be overridable in order to accommodate CGLIB.
private  class ConfigurationClassMethod.StaticMethodError
          Bean methods must at least not be static in the non-CGLIB case.
 
Field Summary
private  ConfigurationClass configurationClass
           
private  MethodMetadata metadata
           
 
Constructor Summary
ConfigurationClassMethod(MethodMetadata metadata, ConfigurationClass configurationClass)
           
 
Method Summary
 ConfigurationClass getConfigurationClass()
           
 MethodMetadata getMetadata()
           
 Location getResourceLocation()
           
 java.lang.String toString()
           
 void validate(ProblemReporter problemReporter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

metadata

private final MethodMetadata metadata

configurationClass

private final ConfigurationClass configurationClass
Constructor Detail

ConfigurationClassMethod

public ConfigurationClassMethod(MethodMetadata metadata,
                                ConfigurationClass configurationClass)
Method Detail

getMetadata

public MethodMetadata getMetadata()

getConfigurationClass

public ConfigurationClass getConfigurationClass()

getResourceLocation

public Location getResourceLocation()

validate

public void validate(ProblemReporter problemReporter)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object