org.jboss.beans.metadata.spi.builder
Class BeanMetaDataBuilder

java.lang.Object
  extended by org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder

public abstract class BeanMetaDataBuilder
extends Object

BeanMetaDataBuilder contract.

Author:
Ales Justin, Adrian Brock

Constructor Summary
BeanMetaDataBuilder()
           
 
Method Summary
abstract  BeanMetaDataBuilder addAlias(Object alias)
          Add alias.
abstract  BeanMetaDataBuilder addAnnotation(Annotation annotation)
          Add annotation.
abstract  BeanMetaDataBuilder addAnnotation(String annotation)
          Add annotation.
abstract  BeanMetaDataBuilder addAnnotation(String annotation, boolean replace)
          Add annotation.
abstract  BeanMetaDataBuilder addConstructorParameter(String type, Object value)
          Add a constructor parameter
abstract  BeanMetaDataBuilder addConstructorParameter(String type, String value)
          Add a constructor parameter
abstract  BeanMetaDataBuilder addConstructorParameter(String type, ValueMetaData value)
          Add a constructor parameter
abstract  BeanMetaDataBuilder addCreateParameter(String type, Object value)
          Add a create parameter
abstract  BeanMetaDataBuilder addCreateParameter(String type, String value)
          Add a create parameter
abstract  BeanMetaDataBuilder addCreateParameter(String type, ValueMetaData value)
          Add a create parameter
 BeanMetaDataBuilder addDemand(Object demand)
          Add a demand
abstract  BeanMetaDataBuilder addDemand(Object demand, ControllerState whenRequired, ControllerState targetState, String transformer)
          Add a demand
 BeanMetaDataBuilder addDemand(Object demand, ControllerState whenRequired, String transformer)
          Add a demand
 BeanMetaDataBuilder addDemand(Object demand, String whenRequired, String transformer)
          Add a demand
abstract  BeanMetaDataBuilder addDependency(Object dependency)
          Add a dependency
abstract  BeanMetaDataBuilder addDestroyParameter(String type, Object value)
          Add a destroy parameter
abstract  BeanMetaDataBuilder addDestroyParameter(String type, String value)
          Add a destroy parameter
abstract  BeanMetaDataBuilder addDestroyParameter(String type, ValueMetaData value)
          Add a destroy parameter
 BeanMetaDataBuilder addInstall(String methodName)
          Add an install
 BeanMetaDataBuilder addInstall(String methodName, String bean)
          Add an install
 BeanMetaDataBuilder addInstall(String methodName, String[] types, Object[] values)
          Add an install
 BeanMetaDataBuilder addInstall(String methodName, String[] types, String[] values)
          Add an install
 BeanMetaDataBuilder addInstall(String methodName, String[] types, ValueMetaData[] values)
          Add an install
 BeanMetaDataBuilder addInstall(String methodName, String type, Object value)
          Add an install
 BeanMetaDataBuilder addInstall(String methodName, String type, String value)
          Add an install
 BeanMetaDataBuilder addInstall(String methodName, String bean, String[] types, Object[] values)
          Add an install
 BeanMetaDataBuilder addInstall(String methodName, String bean, String[] types, String[] values)
          Add an install
 BeanMetaDataBuilder addInstall(String methodName, String bean, String[] types, ValueMetaData[] values)
          Add an install
 BeanMetaDataBuilder addInstall(String methodName, String bean, String type, Object value)
          Add an install
 BeanMetaDataBuilder addInstall(String methodName, String bean, String type, String value)
          Add an install
 BeanMetaDataBuilder addInstall(String methodName, String bean, String type, ValueMetaData value)
          Add an install
 BeanMetaDataBuilder addInstall(String methodName, String type, ValueMetaData value)
          Add an install
 ParameterMetaDataBuilder addInstallWithParameters(String methodName)
          Add an install
 ParameterMetaDataBuilder addInstallWithParameters(String methodName, String bean)
          Add an install
 ParameterMetaDataBuilder addInstallWithParameters(String methodName, String bean, ControllerState state)
          Add an install
abstract  ParameterMetaDataBuilder addInstallWithParameters(String methodName, String bean, ControllerState state, ControllerState whenRequired)
          Add an install
 BeanMetaDataBuilder addInstallWithThis(String methodName, String bean)
          Add an install with a this parameter
 BeanMetaDataBuilder addInstallWithThis(String methodName, String bean, ControllerState state)
          Add an install with a this parameter
 BeanMetaDataBuilder addInstallWithThis(String methodName, String bean, ControllerState state, ControllerState whenRequired)
          Add an install with a this parameter
 BeanMetaDataBuilder addMethodInstallCallback(String method)
          Add method install callback.
 BeanMetaDataBuilder addMethodInstallCallback(String method, Cardinality cardinality)
          Add method install callback.
 BeanMetaDataBuilder addMethodInstallCallback(String method, ControllerState whenRequired)
          Add method install callback.
 BeanMetaDataBuilder addMethodInstallCallback(String method, ControllerState whenRequired, Cardinality cardinality)
          Add method install callback.
abstract  BeanMetaDataBuilder addMethodInstallCallback(String method, String signature, ControllerState whenRequired, ControllerState dependentState, Cardinality cardinality)
          Add method install callback.
 BeanMetaDataBuilder addMethodUninstallCallback(String method)
          Add method uninstall callback.
 BeanMetaDataBuilder addMethodUninstallCallback(String method, Cardinality cardinality)
          Add method uninstall callback.
 BeanMetaDataBuilder addMethodUninstallCallback(String method, ControllerState whenRequired)
          Add method uninstall callback.
 BeanMetaDataBuilder addMethodUninstallCallback(String method, ControllerState whenRequired, Cardinality cardinality)
          Add method uninstall callback.
abstract  BeanMetaDataBuilder addMethodUninstallCallback(String method, String signature, ControllerState whenRequired, ControllerState dependentState, Cardinality cardinality)
          Add method uninstall callback.
abstract  BeanMetaDataBuilder addPropertyAnnotation(String name, Annotation annotation)
          Add a property annotation.
abstract  BeanMetaDataBuilder addPropertyAnnotation(String name, String annotation)
          Add a property annotation.
abstract  BeanMetaDataBuilder addPropertyAnnotation(String name, String annotation, boolean replace)
          Add a property annotation.
 BeanMetaDataBuilder addPropertyInstallCallback(String property)
          Add property install callback.
 BeanMetaDataBuilder addPropertyInstallCallback(String property, Cardinality cardinality)
          Add property install callback.
 BeanMetaDataBuilder addPropertyInstallCallback(String property, ControllerState whenRequired)
          Add property install callback.
 BeanMetaDataBuilder addPropertyInstallCallback(String property, ControllerState whenRequired, Cardinality cardinality)
          Add property install callback.
abstract  BeanMetaDataBuilder addPropertyInstallCallback(String property, String signature, ControllerState whenRequired, ControllerState dependentState, Cardinality cardinality)
          Add property install callback.
abstract  BeanMetaDataBuilder addPropertyMetaData(String name, Collection<ValueMetaData> value)
          Add a property, replace it if it already exists
abstract  BeanMetaDataBuilder addPropertyMetaData(String name, Map<ValueMetaData,ValueMetaData> value)
          Add a property, replace it if it already exists
abstract  BeanMetaDataBuilder addPropertyMetaData(String name, Object value)
          Add a property, replace it if it already exists
abstract  BeanMetaDataBuilder addPropertyMetaData(String name, String value)
          Add a property, replace it if it already exists
abstract  BeanMetaDataBuilder addPropertyMetaData(String name, ValueMetaData value)
          Add a property, replace it if it already exists
 BeanMetaDataBuilder addPropertyUninstallCallback(String property)
          Add property uninstall callback.
 BeanMetaDataBuilder addPropertyUninstallCallback(String property, Cardinality cardinality)
          Add property uninstall callback.
 BeanMetaDataBuilder addPropertyUninstallCallback(String property, ControllerState whenRequired)
          Add property uninstall callback.
 BeanMetaDataBuilder addPropertyUninstallCallback(String property, ControllerState whenRequired, Cardinality cardinality)
          Add property uninstall callback.
abstract  BeanMetaDataBuilder addPropertyUninstallCallback(String property, String signature, ControllerState whenRequired, ControllerState dependentState, Cardinality cardinality)
          Add property uninstall callback.
abstract  BeanMetaDataBuilder addRelatedClass(RelatedClassMetaData related)
          Add related class.
abstract  BeanMetaDataBuilder addRelatedClass(String className, Object... enabled)
          Add related class.
abstract  BeanMetaDataBuilder addStartParameter(String type, Object value)
          Add a start parameter
abstract  BeanMetaDataBuilder addStartParameter(String type, String value)
          Add a start parameter
abstract  BeanMetaDataBuilder addStartParameter(String type, ValueMetaData value)
          Add a start parameter
abstract  BeanMetaDataBuilder addStopParameter(String type, Object value)
          Add a stop parameter
abstract  BeanMetaDataBuilder addStopParameter(String type, String value)
          Add a stop parameter
abstract  BeanMetaDataBuilder addStopParameter(String type, ValueMetaData value)
          Add a stop parameter
 BeanMetaDataBuilder addSupply(Object supply)
          Add a supply
abstract  BeanMetaDataBuilder addSupply(Object supply, String type)
          Add a supply
 BeanMetaDataBuilder addUninstall(String methodName)
          Add an uninstall
 BeanMetaDataBuilder addUninstall(String methodName, String bean)
          Add an uninstall
 BeanMetaDataBuilder addUninstall(String methodName, String[] types, Object[] values)
          Add an uninstall
 BeanMetaDataBuilder addUninstall(String methodName, String[] types, String[] values)
          Add an uninstall
 BeanMetaDataBuilder addUninstall(String methodName, String[] types, ValueMetaData[] values)
          Add an uninstall
 BeanMetaDataBuilder addUninstall(String methodName, String type, Object value)
          Add an uninstall
 BeanMetaDataBuilder addUninstall(String methodName, String type, String value)
          Add an uninstall
 BeanMetaDataBuilder addUninstall(String methodName, String bean, String[] types, Object[] values)
          Add an uninstall
 BeanMetaDataBuilder addUninstall(String methodName, String bean, String[] types, String[] values)
          Add an uninstall
 BeanMetaDataBuilder addUninstall(String methodName, String bean, String[] types, ValueMetaData[] values)
          Add an uninstall
 BeanMetaDataBuilder addUninstall(String methodName, String bean, String type, Object value)
          Add an uninstall
 BeanMetaDataBuilder addUninstall(String methodName, String bean, String type, String value)
          Add an uninstall
 BeanMetaDataBuilder addUninstall(String methodName, String bean, String type, ValueMetaData value)
          Add an uninstall
 BeanMetaDataBuilder addUninstall(String methodName, String type, ValueMetaData value)
          Add an uninstall
 ParameterMetaDataBuilder addUninstallWithParameters(String methodName)
          Add an uninstall
 ParameterMetaDataBuilder addUninstallWithParameters(String methodName, String bean)
          Add an uninstall
 ParameterMetaDataBuilder addUninstallWithParameters(String methodName, String bean, ControllerState state)
          Add an uninstall
abstract  ParameterMetaDataBuilder addUninstallWithParameters(String methodName, String bean, ControllerState state, ControllerState whenRequired)
          Add an uninstall
 BeanMetaDataBuilder addUninstallWithThis(String methodName, String bean)
          Add an uninstall with a this parameter
 BeanMetaDataBuilder addUninstallWithThis(String methodName, String bean, ControllerState state)
          Add an uninstall with a this parameter
 BeanMetaDataBuilder addUninstallWithThis(String methodName, String bean, ControllerState state, ControllerState whenRequired)
          Add an uninstall with a this parameter
 BeanMetaDataFactory asBeanMetaDataFactory()
          Get underlying bean as BeanMetaDataFactory.
 List<ValueMetaData> createArray()
          Create a new array
abstract  List<ValueMetaData> createArray(String arrayType, String elementType)
          Create a new array
static BeanMetaDataBuilder createBuilder(BeanMetaData beanMetaData)
          Create builder from BeanMetaData
static BeanMetaDataBuilder createBuilder(String beanClassName)
          Create builder from bean.
static BeanMetaDataBuilder createBuilder(String beanInstanceName, String beanClassName)
          Create builder from name and bean.
 Collection<ValueMetaData> createCollection()
          Create a new collection
abstract  Collection<ValueMetaData> createCollection(String collectionType, String elementType)
          Create a new collection
 ValueMetaData createContextualInject()
          Create contextual injection.
 ValueMetaData createContextualInject(ControllerState whenRequired, ControllerState dependentState)
          Create contextual injection.
 ValueMetaData createContextualInject(ControllerState whenRequired, ControllerState dependentState, AutowireType autowire, InjectOption option)
          Create contextual injection.
abstract  ValueMetaData createContextualInject(ControllerState whenRequired, ControllerState dependentState, AutowireType autowire, InjectOption option, SearchInfo search)
          Create contextual injection.
 ValueMetaData createFromContextInject(FromContext fromContext)
          Create from context injection.
 ValueMetaData createFromContextInject(FromContext fromContext, Object contextName)
          Create from context injection.
 ValueMetaData createFromContextInject(FromContext fromContext, Object contextName, ControllerState dependentState)
          Create from context injection.
abstract  ValueMetaData createFromContextInject(FromContext fromContext, Object contextName, ControllerState dependentState, SearchInfo search)
          Create from context injection.
 ValueMetaData createInject(Object bean)
          Create an injection
 ValueMetaData createInject(Object bean, String property)
          Create an injection
 ValueMetaData createInject(Object bean, String property, ControllerState whenRequired, ControllerState dependentState)
          Create an injection
abstract  ValueMetaData createInject(Object bean, String property, ControllerState whenRequired, ControllerState dependentState, SearchInfo search)
          Create an injection
 List<ValueMetaData> createList()
          Create a new list
abstract  List<ValueMetaData> createList(String listType, String elementType)
          Create a new list
 Map<ValueMetaData,ValueMetaData> createMap()
          Create a new map
abstract  Map<ValueMetaData,ValueMetaData> createMap(String mapType, String keyType, String valueType)
          Create a new map
abstract  ValueMetaData createNull()
          Create a null value
abstract  RelatedClassMetaData createRelated(String className, Object... enabled)
          Create related class name.
 Set<ValueMetaData> createSet()
          Create a new set
abstract  Set<ValueMetaData> createSet(String setType, String elementType)
          Create a new set
abstract  ValueMetaData createString(String type, String value)
          Create a string value
abstract  ValueMetaData createThis()
          Create a this value
abstract  ValueMetaData createValue(Object value)
          Create a value
abstract  BeanMetaData getBeanMetaData()
          Get the constructed bean metadata
abstract  BeanMetaDataFactory getBeanMetaDataFactory()
          Get bean factory from underlying bean meta data.
abstract  BeanMetaDataBuilder ignoreCreate()
          Should we ignore default create invocation.
abstract  BeanMetaDataBuilder ignoreDestroy()
          Should we ignore default destroy invocation.
abstract  BeanMetaDataBuilder ignoreStart()
          Should we ignore default start invocation.
abstract  BeanMetaDataBuilder ignoreStop()
          Should we ignore default stop invocation.
abstract  BeanMetaDataBuilder setAccessMode(org.jboss.beans.info.spi.BeanAccessMode mode)
          Set the access mode
abstract  BeanMetaDataBuilder setAliases(Set<Object> aliases)
          Set the aliases
abstract  BeanMetaDataBuilder setAnnotations(Set<String> annotations)
          Set the annotations
abstract  BeanMetaDataBuilder setAutowireCandidate(boolean candidate)
          Is bean autowire candidate.
abstract  BeanMetaDataBuilder setAutowireType(AutowireType type)
          Set the autowire type
abstract  BeanMetaDataBuilder setBean(String bean)
          Set the bean.
abstract  BeanMetaDataBuilder setClassLoader(ClassLoaderMetaData classLoader)
          Set the classloader
 BeanMetaDataBuilder setClassLoader(Object classLoader)
          Set the classloader
abstract  BeanMetaDataBuilder setClassLoader(ValueMetaData classLoader)
          Set the classloader
 BeanMetaDataBuilder setConstructorValue(Object value)
          Set the constructor value
 BeanMetaDataBuilder setConstructorValue(String type, String value)
          Set the constructor value
abstract  BeanMetaDataBuilder setConstructorValue(ValueMetaData value)
          Set the constructor value
abstract  BeanMetaDataBuilder setCreate(String methodName)
          Set the create method
abstract  BeanMetaDataBuilder setDestroy(String methodName)
          Set the destroy method
abstract  BeanMetaDataBuilder setErrorHandlingMode(ErrorHandlingMode mode)
          Set the error handling mode
 BeanMetaDataBuilder setFactory(Object factory)
          Set the factory
 BeanMetaDataBuilder setFactory(String bean)
          Set the factory
 BeanMetaDataBuilder setFactory(String bean, String property)
          Set the factory
abstract  BeanMetaDataBuilder setFactory(ValueMetaData factory)
          Set the factory
abstract  BeanMetaDataBuilder setFactoryClass(String factoryClass)
          Set the factory class
abstract  BeanMetaDataBuilder setFactoryMethod(String factoryMethod)
          Set the factory method
abstract  BeanMetaDataBuilder setMode(ControllerMode mode)
          Set the mode
 BeanMetaDataBuilder setMode(String modeString)
          Set the mode
abstract  BeanMetaDataBuilder setName(String name)
          Set the bean name.
 BeanMetaDataBuilder setNoClassLoader()
          Set that we don't want to use the deployment classloader
abstract  BeanMetaDataBuilder setRelated(Set<RelatedClassMetaData> related)
          Set the related
abstract  BeanMetaDataBuilder setStart(String methodName)
          Set the start method
abstract  BeanMetaDataBuilder setStop(String methodName)
          Set the stop method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanMetaDataBuilder

public BeanMetaDataBuilder()
Method Detail

createBuilder

public static BeanMetaDataBuilder createBuilder(String beanClassName)
Create builder from bean.

Parameters:
beanClassName - bean class name
Returns:
new Builder

createBuilder

public static BeanMetaDataBuilder createBuilder(String beanInstanceName,
                                                String beanClassName)
Create builder from name and bean.

Parameters:
beanInstanceName - bean name
beanClassName - bean class name
Returns:
new Builder

createBuilder

public static BeanMetaDataBuilder createBuilder(BeanMetaData beanMetaData)
Create builder from BeanMetaData

Parameters:
beanMetaData - the bean metadata
Returns:
new Builder()

getBeanMetaData

public abstract BeanMetaData getBeanMetaData()
Get the constructed bean metadata

Returns:
the bean metadata

getBeanMetaDataFactory

public abstract BeanMetaDataFactory getBeanMetaDataFactory()
Get bean factory from underlying bean meta data. Note: this one includes all nested beans from underlying bean metadata.

Returns:
bean meta data factory

asBeanMetaDataFactory

public BeanMetaDataFactory asBeanMetaDataFactory()
Get underlying bean as BeanMetaDataFactory. Note: this method doesn't include nested beans from underlying bean metadata.

Returns:
bean meta data factory

setName

public abstract BeanMetaDataBuilder setName(String name)
Set the bean name.

Parameters:
name - the name
Returns:
the builder

setBean

public abstract BeanMetaDataBuilder setBean(String bean)
Set the bean.

Parameters:
bean - the bean class name
Returns:
the builder

setAliases

public abstract BeanMetaDataBuilder setAliases(Set<Object> aliases)
Set the aliases

Parameters:
aliases - the aliases
Returns:
the builder

addRelatedClass

public abstract BeanMetaDataBuilder addRelatedClass(String className,
                                                    Object... enabled)
Add related class.

Parameters:
className - the related class name
enabled - the enabled
Returns:
the builder

addRelatedClass

public abstract BeanMetaDataBuilder addRelatedClass(RelatedClassMetaData related)
Add related class.

Parameters:
related - the related class
Returns:
the builder

setRelated

public abstract BeanMetaDataBuilder setRelated(Set<RelatedClassMetaData> related)
Set the related

Parameters:
related - the related
Returns:
the builder

addAlias

public abstract BeanMetaDataBuilder addAlias(Object alias)
Add alias.

Parameters:
alias - the alias
Returns:
the builder

setAnnotations

public abstract BeanMetaDataBuilder setAnnotations(Set<String> annotations)
Set the annotations

Parameters:
annotations - the annotations
Returns:
the builder

addAnnotation

public abstract BeanMetaDataBuilder addAnnotation(String annotation)
Add annotation.

Parameters:
annotation - the annotation
Returns:
the builder

addAnnotation

public abstract BeanMetaDataBuilder addAnnotation(Annotation annotation)
Add annotation.

Parameters:
annotation - the annotation
Returns:
the builder

addAnnotation

public abstract BeanMetaDataBuilder addAnnotation(String annotation,
                                                  boolean replace)
Add annotation.

Parameters:
annotation - the annotation
replace - the replace flag
Returns:
the builder

setMode

public BeanMetaDataBuilder setMode(String modeString)
Set the mode

Parameters:
modeString - the mode
Returns:
the builder

setMode

public abstract BeanMetaDataBuilder setMode(ControllerMode mode)
Set the mode

Parameters:
mode - the mode
Returns:
the builder

setAccessMode

public abstract BeanMetaDataBuilder setAccessMode(org.jboss.beans.info.spi.BeanAccessMode mode)
Set the access mode

Parameters:
mode - the access mode
Returns:
the builder

setErrorHandlingMode

public abstract BeanMetaDataBuilder setErrorHandlingMode(ErrorHandlingMode mode)
Set the error handling mode

Parameters:
mode - the error handling mode
Returns:
the builder

setAutowireType

public abstract BeanMetaDataBuilder setAutowireType(AutowireType type)
Set the autowire type

Parameters:
type - the autowire type
Returns:
the builder

setAutowireCandidate

public abstract BeanMetaDataBuilder setAutowireCandidate(boolean candidate)
Is bean autowire candidate.

Parameters:
candidate - the candidate flag
Returns:
the builder

setNoClassLoader

public BeanMetaDataBuilder setNoClassLoader()
Set that we don't want to use the deployment classloader

Returns:
the builder

setClassLoader

public BeanMetaDataBuilder setClassLoader(Object classLoader)
Set the classloader

Parameters:
classLoader - the classloader
Returns:
the builder

setClassLoader

public abstract BeanMetaDataBuilder setClassLoader(ValueMetaData classLoader)
Set the classloader

Parameters:
classLoader - the classloader
Returns:
the builder

setClassLoader

public abstract BeanMetaDataBuilder setClassLoader(ClassLoaderMetaData classLoader)
Set the classloader

Parameters:
classLoader - the classloader
Returns:
the builder

setFactory

public BeanMetaDataBuilder setFactory(Object factory)
Set the factory

Parameters:
factory - the factory
Returns:
the builder

setFactory

public BeanMetaDataBuilder setFactory(String bean)
Set the factory

Parameters:
bean - the bean name
Returns:
the builder

setFactory

public BeanMetaDataBuilder setFactory(String bean,
                                      String property)
Set the factory

Parameters:
bean - the bean name
property - the property name for the factory
Returns:
the builder

setFactory

public abstract BeanMetaDataBuilder setFactory(ValueMetaData factory)
Set the factory

Parameters:
factory - the factory
Returns:
the builder

setFactoryClass

public abstract BeanMetaDataBuilder setFactoryClass(String factoryClass)
Set the factory class

Parameters:
factoryClass - the factory class
Returns:
the builder

setFactoryMethod

public abstract BeanMetaDataBuilder setFactoryMethod(String factoryMethod)
Set the factory method

Parameters:
factoryMethod - the factory method
Returns:
the builder

setConstructorValue

public BeanMetaDataBuilder setConstructorValue(Object value)
Set the constructor value

Parameters:
value - the object "constructed"
Returns:
the builder

setConstructorValue

public BeanMetaDataBuilder setConstructorValue(String type,
                                               String value)
Set the constructor value

Parameters:
type - the type
value - the object "constructed"
Returns:
the builder

setConstructorValue

public abstract BeanMetaDataBuilder setConstructorValue(ValueMetaData value)
Set the constructor value

Parameters:
value - the object "constructed"
Returns:
the builder

addConstructorParameter

public abstract BeanMetaDataBuilder addConstructorParameter(String type,
                                                            Object value)
Add a constructor parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

addConstructorParameter

public abstract BeanMetaDataBuilder addConstructorParameter(String type,
                                                            String value)
Add a constructor parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

addConstructorParameter

public abstract BeanMetaDataBuilder addConstructorParameter(String type,
                                                            ValueMetaData value)
Add a constructor parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

addPropertyMetaData

public abstract BeanMetaDataBuilder addPropertyMetaData(String name,
                                                        Object value)
Add a property, replace it if it already exists

Parameters:
name - the property name
value - the value
Returns:
the builder

addPropertyMetaData

public abstract BeanMetaDataBuilder addPropertyMetaData(String name,
                                                        String value)
Add a property, replace it if it already exists

Parameters:
name - the property name
value - the value
Returns:
the builder

addPropertyMetaData

public abstract BeanMetaDataBuilder addPropertyMetaData(String name,
                                                        ValueMetaData value)
Add a property, replace it if it already exists

Parameters:
name - the property name
value - the value
Returns:
the builder

addPropertyMetaData

public abstract BeanMetaDataBuilder addPropertyMetaData(String name,
                                                        Collection<ValueMetaData> value)
Add a property, replace it if it already exists

Parameters:
name - the property name
value - the value
Returns:
the builder

addPropertyAnnotation

public abstract BeanMetaDataBuilder addPropertyAnnotation(String name,
                                                          String annotation)
Add a property annotation.

Parameters:
name - the property name
annotation - the annotation
Returns:
the builder

addPropertyAnnotation

public abstract BeanMetaDataBuilder addPropertyAnnotation(String name,
                                                          String annotation,
                                                          boolean replace)
Add a property annotation.

Parameters:
name - the property name
annotation - the annotation
replace - the replace flag
Returns:
the builder

addPropertyAnnotation

public abstract BeanMetaDataBuilder addPropertyAnnotation(String name,
                                                          Annotation annotation)
Add a property annotation.

Parameters:
name - the property name
annotation - the annotation
Returns:
the builder

addPropertyMetaData

public abstract BeanMetaDataBuilder addPropertyMetaData(String name,
                                                        Map<ValueMetaData,ValueMetaData> value)
Add a property, replace it if it already exists

Parameters:
name - the property name
value - the value
Returns:
the builder

ignoreCreate

public abstract BeanMetaDataBuilder ignoreCreate()
Should we ignore default create invocation.

Returns:
the builder

setCreate

public abstract BeanMetaDataBuilder setCreate(String methodName)
Set the create method

Parameters:
methodName - the method name
Returns:
the builder

addCreateParameter

public abstract BeanMetaDataBuilder addCreateParameter(String type,
                                                       Object value)
Add a create parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

addCreateParameter

public abstract BeanMetaDataBuilder addCreateParameter(String type,
                                                       String value)
Add a create parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

addCreateParameter

public abstract BeanMetaDataBuilder addCreateParameter(String type,
                                                       ValueMetaData value)
Add a create parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

ignoreStart

public abstract BeanMetaDataBuilder ignoreStart()
Should we ignore default start invocation.

Returns:
the builder

setStart

public abstract BeanMetaDataBuilder setStart(String methodName)
Set the start method

Parameters:
methodName - the method name
Returns:
the builder

addStartParameter

public abstract BeanMetaDataBuilder addStartParameter(String type,
                                                      Object value)
Add a start parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

addStartParameter

public abstract BeanMetaDataBuilder addStartParameter(String type,
                                                      String value)
Add a start parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

addStartParameter

public abstract BeanMetaDataBuilder addStartParameter(String type,
                                                      ValueMetaData value)
Add a start parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

ignoreStop

public abstract BeanMetaDataBuilder ignoreStop()
Should we ignore default stop invocation.

Returns:
the builder

setStop

public abstract BeanMetaDataBuilder setStop(String methodName)
Set the stop method

Parameters:
methodName - the method name
Returns:
the builder

addStopParameter

public abstract BeanMetaDataBuilder addStopParameter(String type,
                                                     Object value)
Add a stop parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

addStopParameter

public abstract BeanMetaDataBuilder addStopParameter(String type,
                                                     String value)
Add a stop parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

addStopParameter

public abstract BeanMetaDataBuilder addStopParameter(String type,
                                                     ValueMetaData value)
Add a stop parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

ignoreDestroy

public abstract BeanMetaDataBuilder ignoreDestroy()
Should we ignore default destroy invocation.

Returns:
the builder

setDestroy

public abstract BeanMetaDataBuilder setDestroy(String methodName)
Set the destroy method

Parameters:
methodName - the method name
Returns:
the builder

addDestroyParameter

public abstract BeanMetaDataBuilder addDestroyParameter(String type,
                                                        Object value)
Add a destroy parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

addDestroyParameter

public abstract BeanMetaDataBuilder addDestroyParameter(String type,
                                                        String value)
Add a destroy parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

addDestroyParameter

public abstract BeanMetaDataBuilder addDestroyParameter(String type,
                                                        ValueMetaData value)
Add a destroy parameter

Parameters:
type - the parameter type
value - the value
Returns:
the builder

addSupply

public BeanMetaDataBuilder addSupply(Object supply)
Add a supply

Parameters:
supply - the supply
Returns:
the builder

addSupply

public abstract BeanMetaDataBuilder addSupply(Object supply,
                                              String type)
Add a supply

Parameters:
supply - the supply
type - the supply type
Returns:
the builder

addDemand

public BeanMetaDataBuilder addDemand(Object demand)
Add a demand

Parameters:
demand - the demand
Returns:
the builder

addDemand

public BeanMetaDataBuilder addDemand(Object demand,
                                     String whenRequired,
                                     String transformer)
Add a demand

Parameters:
demand - the demand
whenRequired - when the demand is required
transformer - the transformer
Returns:
the builder

addDemand

public BeanMetaDataBuilder addDemand(Object demand,
                                     ControllerState whenRequired,
                                     String transformer)
Add a demand

Parameters:
demand - the demand
whenRequired - when the demand is required
transformer - the transformer
Returns:
the builder

addDemand

public abstract BeanMetaDataBuilder addDemand(Object demand,
                                              ControllerState whenRequired,
                                              ControllerState targetState,
                                              String transformer)
Add a demand

Parameters:
demand - the demand
whenRequired - when the demand is required
targetState - the target state
transformer - the transformer
Returns:
the builder

addDependency

public abstract BeanMetaDataBuilder addDependency(Object dependency)
Add a dependency

Parameters:
dependency - the dependency
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName)
Add an install

Parameters:
methodName - the method name
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName,
                                      String type,
                                      Object value)
Add an install

Parameters:
methodName - the method name
type - the parameter type
value - the value
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName,
                                      String type,
                                      String value)
Add an install

Parameters:
methodName - the method name
type - the parameter type
value - the value
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName,
                                      String type,
                                      ValueMetaData value)
Add an install

Parameters:
methodName - the method name
type - the parameter type
value - the value
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName,
                                      String[] types,
                                      Object[] values)
Add an install

Parameters:
methodName - the method name
types - the parameter types
values - the values
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName,
                                      String[] types,
                                      String[] values)
Add an install

Parameters:
methodName - the method name
types - the parameter types
values - the values
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName,
                                      String[] types,
                                      ValueMetaData[] values)
Add an install

Parameters:
methodName - the method name
types - the parameter types
values - the values
Returns:
the builder

addInstallWithThis

public BeanMetaDataBuilder addInstallWithThis(String methodName,
                                              String bean)
Add an install with a this parameter

Parameters:
methodName - the method name
bean - the bean name
Returns:
the builder

addInstallWithThis

public BeanMetaDataBuilder addInstallWithThis(String methodName,
                                              String bean,
                                              ControllerState state)
Add an install with a this parameter

Parameters:
methodName - the method name
bean - the bean name
state - the state of the bean
Returns:
the builder

addInstallWithThis

public BeanMetaDataBuilder addInstallWithThis(String methodName,
                                              String bean,
                                              ControllerState state,
                                              ControllerState whenRequired)
Add an install with a this parameter

Parameters:
methodName - the method name
bean - the bean name
state - the state of the bean
whenRequired - the state when to install
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName,
                                      String bean)
Add an install

Parameters:
methodName - the method name
bean - the bean name
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName,
                                      String bean,
                                      String type,
                                      Object value)
Add an install

Parameters:
methodName - the method name
bean - the bean name
type - the parameter type
value - the value
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName,
                                      String bean,
                                      String type,
                                      String value)
Add an install

Parameters:
methodName - the method name
bean - the bean name
type - the parameter type
value - the value
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName,
                                      String bean,
                                      String type,
                                      ValueMetaData value)
Add an install

Parameters:
methodName - the method name
bean - the bean name
type - the parameter type
value - the value
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName,
                                      String bean,
                                      String[] types,
                                      Object[] values)
Add an install

Parameters:
methodName - the method name
bean - the bean name
types - the parameter types
values - the values
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName,
                                      String bean,
                                      String[] types,
                                      String[] values)
Add an install

Parameters:
methodName - the method name
bean - the bean name
types - the parameter types
values - the values
Returns:
the builder

addInstall

public BeanMetaDataBuilder addInstall(String methodName,
                                      String bean,
                                      String[] types,
                                      ValueMetaData[] values)
Add an install

Parameters:
methodName - the method name
bean - the bean name
types - the parameter types
values - the values
Returns:
the builder

addInstallWithParameters

public ParameterMetaDataBuilder addInstallWithParameters(String methodName)
Add an install

Parameters:
methodName - the method name
Returns:
the builder

addInstallWithParameters

public ParameterMetaDataBuilder addInstallWithParameters(String methodName,
                                                         String bean)
Add an install

Parameters:
methodName - the method name
bean - the bean name
Returns:
the builder

addInstallWithParameters

public ParameterMetaDataBuilder addInstallWithParameters(String methodName,
                                                         String bean,
                                                         ControllerState state)
Add an install

Parameters:
methodName - the method name
bean - the bean name
state - the state of the bean
Returns:
the parameter builder

addInstallWithParameters

public abstract ParameterMetaDataBuilder addInstallWithParameters(String methodName,
                                                                  String bean,
                                                                  ControllerState state,
                                                                  ControllerState whenRequired)
Add an install

Parameters:
methodName - the method name
bean - the bean name
state - the state of the bean
whenRequired - the state when to install
Returns:
the parameter builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName)
Add an uninstall

Parameters:
methodName - the method name
Returns:
the builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName,
                                        String type,
                                        Object value)
Add an uninstall

Parameters:
methodName - the method name
type - the parameter type
value - the value
Returns:
the builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName,
                                        String type,
                                        String value)
Add an uninstall

Parameters:
methodName - the method name
type - the parameter type
value - the value
Returns:
the builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName,
                                        String type,
                                        ValueMetaData value)
Add an uninstall

Parameters:
methodName - the method name
type - the parameter type
value - the value
Returns:
the builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName,
                                        String[] types,
                                        Object[] values)
Add an uninstall

Parameters:
methodName - the method name
types - the parameter types
values - the values
Returns:
the builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName,
                                        String[] types,
                                        String[] values)
Add an uninstall

Parameters:
methodName - the method name
types - the parameter types
values - the values
Returns:
the builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName,
                                        String[] types,
                                        ValueMetaData[] values)
Add an uninstall

Parameters:
methodName - the method name
types - the parameter types
values - the values
Returns:
the builder

addUninstallWithThis

public BeanMetaDataBuilder addUninstallWithThis(String methodName,
                                                String bean)
Add an uninstall with a this parameter

Parameters:
methodName - the method name
bean - the bean name
Returns:
the builder

addUninstallWithThis

public BeanMetaDataBuilder addUninstallWithThis(String methodName,
                                                String bean,
                                                ControllerState state)
Add an uninstall with a this parameter

Parameters:
methodName - the method name
bean - the bean name
state - the state when to uninstall
Returns:
the builder

addUninstallWithThis

public BeanMetaDataBuilder addUninstallWithThis(String methodName,
                                                String bean,
                                                ControllerState state,
                                                ControllerState whenRequired)
Add an uninstall with a this parameter

Parameters:
methodName - the method name
bean - the bean name
state - the state of the bean
whenRequired - the state when to uninstall
Returns:
the builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName,
                                        String bean)
Add an uninstall

Parameters:
methodName - the method name
bean - the bean name
Returns:
the builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName,
                                        String bean,
                                        String type,
                                        Object value)
Add an uninstall

Parameters:
methodName - the method name
bean - the bean name
type - the parameter type
value - the value
Returns:
the builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName,
                                        String bean,
                                        String type,
                                        String value)
Add an uninstall

Parameters:
methodName - the method name
bean - the bean name
type - the parameter type
value - the value
Returns:
the builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName,
                                        String bean,
                                        String type,
                                        ValueMetaData value)
Add an uninstall

Parameters:
methodName - the method name
bean - the bean name
type - the parameter type
value - the value
Returns:
the builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName,
                                        String bean,
                                        String[] types,
                                        Object[] values)
Add an uninstall

Parameters:
methodName - the method name
bean - the bean name
types - the parameter types
values - the values
Returns:
the builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName,
                                        String bean,
                                        String[] types,
                                        String[] values)
Add an uninstall

Parameters:
methodName - the method name
bean - the bean name
types - the parameter types
values - the values
Returns:
the builder

addUninstall

public BeanMetaDataBuilder addUninstall(String methodName,
                                        String bean,
                                        String[] types,
                                        ValueMetaData[] values)
Add an uninstall

Parameters:
methodName - the method name
bean - the bean name
types - the parameter types
values - the values
Returns:
the builder

addUninstallWithParameters

public ParameterMetaDataBuilder addUninstallWithParameters(String methodName)
Add an uninstall

Parameters:
methodName - the method name
Returns:
the builder

addUninstallWithParameters

public ParameterMetaDataBuilder addUninstallWithParameters(String methodName,
                                                           String bean)
Add an uninstall

Parameters:
methodName - the method name
bean - the bean name
Returns:
the builder

addUninstallWithParameters

public ParameterMetaDataBuilder addUninstallWithParameters(String methodName,
                                                           String bean,
                                                           ControllerState state)
Add an uninstall

Parameters:
methodName - the method name
bean - the bean name
state - the state of the bean
Returns:
the parameter builder

addUninstallWithParameters

public abstract ParameterMetaDataBuilder addUninstallWithParameters(String methodName,
                                                                    String bean,
                                                                    ControllerState state,
                                                                    ControllerState whenRequired)
Add an uninstall

Parameters:
methodName - the method name
bean - the bean name
state - the state of the bean
whenRequired - the state when to uninstall
Returns:
the parameter builder

addPropertyInstallCallback

public BeanMetaDataBuilder addPropertyInstallCallback(String property)
Add property install callback.

Parameters:
property - the property name
Returns:
the builder

addPropertyInstallCallback

public BeanMetaDataBuilder addPropertyInstallCallback(String property,
                                                      ControllerState whenRequired)
Add property install callback.

Parameters:
property - the property name
whenRequired - the when required state
Returns:
the builder

addPropertyInstallCallback

public BeanMetaDataBuilder addPropertyInstallCallback(String property,
                                                      Cardinality cardinality)
Add property install callback.

Parameters:
property - the property name
cardinality - the cardinality
Returns:
the builder

addPropertyInstallCallback

public BeanMetaDataBuilder addPropertyInstallCallback(String property,
                                                      ControllerState whenRequired,
                                                      Cardinality cardinality)
Add property install callback.

Parameters:
property - the property name
whenRequired - the when required state
cardinality - the cardinality
Returns:
the builder

addPropertyInstallCallback

public abstract BeanMetaDataBuilder addPropertyInstallCallback(String property,
                                                               String signature,
                                                               ControllerState whenRequired,
                                                               ControllerState dependentState,
                                                               Cardinality cardinality)
Add property install callback.

Parameters:
property - the property name
signature - the property signature
whenRequired - the when required state
dependentState - the dependant state
cardinality - the cardinality
Returns:
the builder

addPropertyUninstallCallback

public BeanMetaDataBuilder addPropertyUninstallCallback(String property)
Add property uninstall callback.

Parameters:
property - the property name
Returns:
the builder

addPropertyUninstallCallback

public BeanMetaDataBuilder addPropertyUninstallCallback(String property,
                                                        ControllerState whenRequired)
Add property uninstall callback.

Parameters:
property - the property name
whenRequired - the when required state
Returns:
the builder

addPropertyUninstallCallback

public BeanMetaDataBuilder addPropertyUninstallCallback(String property,
                                                        Cardinality cardinality)
Add property uninstall callback.

Parameters:
property - the property name
cardinality - the cardinality
Returns:
the builder

addPropertyUninstallCallback

public BeanMetaDataBuilder addPropertyUninstallCallback(String property,
                                                        ControllerState whenRequired,
                                                        Cardinality cardinality)
Add property uninstall callback.

Parameters:
property - the property name
whenRequired - the when required state
cardinality - the cardinality
Returns:
the builder

addPropertyUninstallCallback

public abstract BeanMetaDataBuilder addPropertyUninstallCallback(String property,
                                                                 String signature,
                                                                 ControllerState whenRequired,
                                                                 ControllerState dependentState,
                                                                 Cardinality cardinality)
Add property uninstall callback.

Parameters:
property - the property name
signature - the property signature
whenRequired - the when required state
dependentState - the dependant state
cardinality - the cardinality
Returns:
the builder

addMethodInstallCallback

public BeanMetaDataBuilder addMethodInstallCallback(String method)
Add method install callback.

Parameters:
method - the method name
Returns:
the builder

addMethodInstallCallback

public BeanMetaDataBuilder addMethodInstallCallback(String method,
                                                    ControllerState whenRequired)
Add method install callback.

Parameters:
method - the method name
whenRequired - the when required state
Returns:
the builder

addMethodInstallCallback

public BeanMetaDataBuilder addMethodInstallCallback(String method,
                                                    Cardinality cardinality)
Add method install callback.

Parameters:
method - the method name
cardinality - the cardinality
Returns:
the builder

addMethodInstallCallback

public BeanMetaDataBuilder addMethodInstallCallback(String method,
                                                    ControllerState whenRequired,
                                                    Cardinality cardinality)
Add method install callback.

Parameters:
method - the method name
whenRequired - the when required state
cardinality - the cardinality
Returns:
the builder

addMethodInstallCallback

public abstract BeanMetaDataBuilder addMethodInstallCallback(String method,
                                                             String signature,
                                                             ControllerState whenRequired,
                                                             ControllerState dependentState,
                                                             Cardinality cardinality)
Add method install callback.

Parameters:
method - the method name
signature - the method signature
whenRequired - the when required state
dependentState - the dependant state
cardinality - the cardinality
Returns:
the builder

addMethodUninstallCallback

public BeanMetaDataBuilder addMethodUninstallCallback(String method)
Add method uninstall callback.

Parameters:
method - the method name
Returns:
the builder

addMethodUninstallCallback

public BeanMetaDataBuilder addMethodUninstallCallback(String method,
                                                      ControllerState whenRequired)
Add method uninstall callback.

Parameters:
method - the method name
whenRequired - the when required state
Returns:
the builder

addMethodUninstallCallback

public BeanMetaDataBuilder addMethodUninstallCallback(String method,
                                                      Cardinality cardinality)
Add method uninstall callback.

Parameters:
method - the method name
cardinality - the cardinality
Returns:
the builder

addMethodUninstallCallback

public BeanMetaDataBuilder addMethodUninstallCallback(String method,
                                                      ControllerState whenRequired,
                                                      Cardinality cardinality)
Add method uninstall callback.

Parameters:
method - the method name
whenRequired - the when required state
cardinality - the cardinality
Returns:
the builder

addMethodUninstallCallback

public abstract BeanMetaDataBuilder addMethodUninstallCallback(String method,
                                                               String signature,
                                                               ControllerState whenRequired,
                                                               ControllerState dependentState,
                                                               Cardinality cardinality)
Add method uninstall callback.

Parameters:
method - the method name
signature - the method signature
whenRequired - the when required state
dependentState - the dependant state
cardinality - the cardinality
Returns:
the builder

createRelated

public abstract RelatedClassMetaData createRelated(String className,
                                                   Object... enabled)
Create related class name.

Parameters:
className - the related class name
enabled - the enabled
Returns:
new related class meta data

createNull

public abstract ValueMetaData createNull()
Create a null value

Returns:
the null value

createThis

public abstract ValueMetaData createThis()
Create a this value

Returns:
the this value

createValue

public abstract ValueMetaData createValue(Object value)
Create a value

Parameters:
value - the already constructed value
Returns:
the value

createString

public abstract ValueMetaData createString(String type,
                                           String value)
Create a string value

Parameters:
type - the type to be converted into
value - the value
Returns:
the string value

createInject

public ValueMetaData createInject(Object bean)
Create an injection

Parameters:
bean - the bean to inject
Returns:
the injection

createInject

public ValueMetaData createInject(Object bean,
                                  String property)
Create an injection

Parameters:
bean - the bean to inject
property - the property of the bean
Returns:
the injection

createInject

public ValueMetaData createInject(Object bean,
                                  String property,
                                  ControllerState whenRequired,
                                  ControllerState dependentState)
Create an injection

Parameters:
bean - the bean to inject
property - the property of the bean
whenRequired - when the injection is required
dependentState - the state of the injected bean
Returns:
the injection

createInject

public abstract ValueMetaData createInject(Object bean,
                                           String property,
                                           ControllerState whenRequired,
                                           ControllerState dependentState,
                                           SearchInfo search)
Create an injection

Parameters:
bean - the bean to inject
property - the property of the bean
whenRequired - when the injection is required
dependentState - the state of the injected bean
search - the search info
Returns:
the injection

createContextualInject

public ValueMetaData createContextualInject()
Create contextual injection.

Returns:
the contextual injection

createContextualInject

public ValueMetaData createContextualInject(ControllerState whenRequired,
                                            ControllerState dependentState)
Create contextual injection.

Parameters:
whenRequired - when the injection is required
dependentState - the state of the injected bean
Returns:
the contextual injection

createContextualInject

public ValueMetaData createContextualInject(ControllerState whenRequired,
                                            ControllerState dependentState,
                                            AutowireType autowire,
                                            InjectOption option)
Create contextual injection.

Parameters:
whenRequired - when the injection is required
dependentState - the state of the injected bean
autowire - the autowire type
option - the inject option
Returns:
the contextual injection

createContextualInject

public abstract ValueMetaData createContextualInject(ControllerState whenRequired,
                                                     ControllerState dependentState,
                                                     AutowireType autowire,
                                                     InjectOption option,
                                                     SearchInfo search)
Create contextual injection.

Parameters:
whenRequired - when the injection is required
dependentState - the state of the injected bean
autowire - the autowire type
option - the inject option
search - the search info
Returns:
the contextual injection

createFromContextInject

public ValueMetaData createFromContextInject(FromContext fromContext)
Create from context injection.

Parameters:
fromContext - from context enum
Returns:
the from context injection

createFromContextInject

public ValueMetaData createFromContextInject(FromContext fromContext,
                                             Object contextName)
Create from context injection.

Parameters:
fromContext - from context enum
contextName - the context name
Returns:
the from context injection

createFromContextInject

public ValueMetaData createFromContextInject(FromContext fromContext,
                                             Object contextName,
                                             ControllerState dependentState)
Create from context injection.

Parameters:
fromContext - from context enum
contextName - the context name
dependentState - the state of the injected context
Returns:
the from context injection

createFromContextInject

public abstract ValueMetaData createFromContextInject(FromContext fromContext,
                                                      Object contextName,
                                                      ControllerState dependentState,
                                                      SearchInfo search)
Create from context injection.

Parameters:
fromContext - from context enum
contextName - the context name
dependentState - the state of the injected context
search - the search info
Returns:
the from context injection

createCollection

public Collection<ValueMetaData> createCollection()
Create a new collection

Returns:
the collection

createCollection

public abstract Collection<ValueMetaData> createCollection(String collectionType,
                                                           String elementType)
Create a new collection

Parameters:
collectionType - the collection type
elementType - the element type
Returns:
the collection

createList

public List<ValueMetaData> createList()
Create a new list

Returns:
the list

createList

public abstract List<ValueMetaData> createList(String listType,
                                               String elementType)
Create a new list

Parameters:
listType - the list type
elementType - the element type
Returns:
the list

createSet

public Set<ValueMetaData> createSet()
Create a new set

Returns:
the set

createSet

public abstract Set<ValueMetaData> createSet(String setType,
                                             String elementType)
Create a new set

Parameters:
setType - the set type
elementType - the element type
Returns:
the set

createArray

public List<ValueMetaData> createArray()
Create a new array

Returns:
the array

createArray

public abstract List<ValueMetaData> createArray(String arrayType,
                                                String elementType)
Create a new array

Parameters:
arrayType - the array type
elementType - the element type
Returns:
the set

createMap

public Map<ValueMetaData,ValueMetaData> createMap()
Create a new map

Returns:
the map

createMap

public abstract Map<ValueMetaData,ValueMetaData> createMap(String mapType,
                                                           String keyType,
                                                           String valueType)
Create a new map

Parameters:
mapType - the map type
keyType - the key type
valueType - the value type
Returns:
the map


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.