public interface ModuleInfoBuilder
A module info builder is used to create Module info from beans, sockets and required modules.
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionbeans(ModuleBeanInfo[] beans)Sets the beans that should be part of the module.build()Builds the module.Returns the module element.Returns the qualified name of the module being build by the builder.modules(ModuleInfo[] modules)Sets the modules that should be part of the module.sockets(SocketBeanInfo[] sockets)Sets the sockets that should be part of the module.
-
Method Details
-
getElement
ModuleElement getElement()Returns the module element.
- Returns:
- A module element
-
getQualifiedName
ModuleQualifiedName getQualifiedName()Returns the qualified name of the module being build by the builder.
- Returns:
- a module qualified name
-
beans
Sets the beans that should be part of the module.
- Parameters:
beans- an array of bean info- Returns:
- the module info builder
-
sockets
Sets the sockets that should be part of the module.
- Parameters:
sockets- an array of socket info- Returns:
- the module info builder
-
modules
Sets the modules that should be part of the module.
- Parameters:
modules- an array of module info- Returns:
- the module info builder
-
build
ModuleInfo build()Builds the module.
- Returns:
- a module info
-