org.springframework.config.java.util
Class BeanMetadata

java.lang.Object
  extended by org.springframework.config.java.util.BeanMetadata

public class BeanMetadata
extends java.lang.Object

Commonly-used bean metadata pairs.

TODO: SJC-209: slated for elimination along with bean visibility in general. Use:

 import static org.springframework.config.java.util.BeanMetadata.COPY_HIDDEN;

 @Bean(meta=@Meta(key=COPY_HIDDEN, value="true"))
 public Object myBean() {
     return new Object();
 }
 

Author:
Chris Beams
See Also:
Meta

Field Summary
static java.lang.String COPY_HIDDEN
          Signifies that an otherwise public (visible) bean should be copied to the JavaConfig-internal BeanFactory.
 
Constructor Summary
BeanMetadata()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPY_HIDDEN

public static final java.lang.String COPY_HIDDEN
Signifies that an otherwise public (visible) bean should be copied to the JavaConfig-internal BeanFactory. Primarily used for propagating BeanFactoryPostProcessor beans such that both hidden and visible bean definitions are post-processed.

value is irrelevant when using COPY_HIDDEN, but use 'true' by convention.

See Also:
Constant Field Values
Constructor Detail

BeanMetadata

public BeanMetadata()