Class StandardElementsLocalBuilder
java.lang.Object
dev.getelements.elements.sdk.local.StandardElementsLocalBuilder
- All Implemented Interfaces:
ElementsLocalBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theElementsLocal
instancewithAttributes
(Attributes attributes) Specifies the system properties as anAttributes
instance.Specifies the classloader constructor to use for loading theElement
.withElementNamed
(String applicationNameOrId, String elementName, Attributes attributes) Specifies anElement
to load associated with the supplied package.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.sdk.local.ElementsLocalBuilder
withDelegatingClassLoader, withElementNamed, withProperties
-
Constructor Details
-
StandardElementsLocalBuilder
public StandardElementsLocalBuilder()
-
-
Method Details
-
withAttributes
Description copied from interface:ElementsLocalBuilder
Specifies the system properties as anAttributes
instance.- Specified by:
withAttributes
in interfaceElementsLocalBuilder
- Parameters:
attributes
- the attributes- Returns:
- this instance
-
withClassLoaderConstructor
public ElementsLocalBuilder withClassLoaderConstructor(ElementLoaderFactory.ClassLoaderConstructor constructor) Description copied from interface:ElementsLocalBuilder
Specifies the classloader constructor to use for loading theElement
. This is passed toElementLoaderFactory.getIsolatedLoader(Attributes, ClassLoader, ClassLoaderConstructor, Predicate)
- Specified by:
withClassLoaderConstructor
in interfaceElementsLocalBuilder
- Parameters:
constructor
- the constructor- Returns:
- this instance
-
withElementNamed
public ElementsLocalBuilder withElementNamed(String applicationNameOrId, String elementName, Attributes attributes) Description copied from interface:ElementsLocalBuilder
Specifies anElement
to load associated with the supplied package.- Specified by:
withElementNamed
in interfaceElementsLocalBuilder
- 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
Description copied from interface:ElementsLocalBuilder
Builds theElementsLocal
instance- Specified by:
build
in interfaceElementsLocalBuilder
- Returns:
- the
ElementsLocal
instance
-