Class StandardElementsLocalBuilder
java.lang.Object
dev.getelements.elements.sdk.local.StandardElementsLocalBuilder
- All Implemented Interfaces:
ElementsLocalBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theElementsLocalinstancewithAttributes(Attributes attributes) Specifies the system properties as anAttributesinstance.Specifies the classloader constructor to use for loading theElement.withElementNamed(String applicationNameOrId, String elementName, Attributes attributes) Specifies anElementto load associated with the supplied package.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.sdk.local.ElementsLocalBuilder
withDelegatingClassLoader, withElementNamed, withProperties
-
Constructor Details
-
StandardElementsLocalBuilder
public StandardElementsLocalBuilder()
-
-
Method Details
-
withAttributes
Description copied from interface:ElementsLocalBuilderSpecifies the system properties as anAttributesinstance.- Specified by:
withAttributesin interfaceElementsLocalBuilder- Parameters:
attributes- the attributes- Returns:
- this instance
-
withClassLoaderConstructor
public ElementsLocalBuilder withClassLoaderConstructor(ElementLoaderFactory.ClassLoaderConstructor constructor) Description copied from interface:ElementsLocalBuilderSpecifies the classloader constructor to use for loading theElement. This is passed toElementLoaderFactory.getIsolatedLoader(Attributes, ClassLoader, ClassLoaderConstructor, Predicate)- Specified by:
withClassLoaderConstructorin interfaceElementsLocalBuilder- Parameters:
constructor- the constructor- Returns:
- this instance
-
withElementNamed
public ElementsLocalBuilder withElementNamed(String applicationNameOrId, String elementName, Attributes attributes) Description copied from interface:ElementsLocalBuilderSpecifies anElementto load associated with the supplied package.- Specified by:
withElementNamedin interfaceElementsLocalBuilder- Parameters:
applicationNameOrId- the name or id of theApplicationelementName- the name of the Elementattributes- theAttributesto use when loading the package- Returns:
- this instance
-
build
Description copied from interface:ElementsLocalBuilderBuilds theElementsLocalinstance- Specified by:
buildin interfaceElementsLocalBuilder- Returns:
- the
ElementsLocalinstance
-