Interface ElementsLocalBuilder
- All Known Implementing Classes:
MavenElementsLocalBuilder
public interface ElementsLocalBuilder
A builder type for the
ElementsLocal
instance.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theElementsLocal
instancestatic ElementsLocalBuilder
Gets a default instance of theElementsLocalBuilder
.withAttributes
(Attributes attributes) Specifies the system properties as anAttributes
instance.default ElementsLocalBuilder
withElementNamed
(String applicationNameOrId, String aPackage) Specifies anElement
to load associated with the supplied package.withElementNamed
(String applicationNameOrId, String elementName, Attributes attributes) Specifies anElement
to load associated with the supplied package.default ElementsLocalBuilder
withProperties
(Properties properties) Specifies the system properties as aProperties
instance.
-
Method Details
-
withProperties
Specifies the system properties as aProperties
instance.- Parameters:
properties
- properties- Returns:
- this instance
-
withAttributes
Specifies the system properties as anAttributes
instance.- Parameters:
attributes
- the attributes- Returns:
- this instance
-
withElementNamed
Specifies anElement
to load associated with the supplied package.- Parameters:
applicationNameOrId
- the name or id of theApplication
aPackage
- the name of the Java package for the Element- Returns:
- this instance
-
withElementNamed
ElementsLocalBuilder withElementNamed(String applicationNameOrId, String elementName, Attributes attributes) Specifies anElement
to load associated with the supplied package.- Parameters:
applicationNameOrId
- the name or id of theApplication
elementName
- the name of the Elementattributes
- theAttributes
to use when loading the package- Returns:
- this instance
-
build
ElementsLocal build()Builds theElementsLocal
instance- Returns:
- the
ElementsLocal
instance
-
getDefault
Gets a default instance of theElementsLocalBuilder
.- Returns:
- the
ElementsLocalBuilder
-