Package com.yahoo.container.bundle
Class BundleInstantiationSpecification
java.lang.Object
com.yahoo.container.bundle.BundleInstantiationSpecification
Specifies how a component should be instantiated from a bundle.
Immutable
- Author:
- Tony Vaagenes
-
Field Summary
Modifier and TypeFieldDescriptionfinal com.yahoo.component.ComponentSpecification
final com.yahoo.component.ComponentSpecification
static final String
final com.yahoo.component.ComponentId
-
Constructor Summary
ConstructorDescriptionBundleInstantiationSpecification
(com.yahoo.component.ComponentId id, com.yahoo.component.ComponentSpecification classId, com.yahoo.component.ComponentSpecification bundle) BundleInstantiationSpecification
(com.yahoo.component.ComponentSpecification id, com.yahoo.component.ComponentSpecification classId, com.yahoo.component.ComponentSpecification bundle) -
Method Summary
Modifier and TypeMethodDescriptionfromSearchAndDocproc
(com.yahoo.component.ComponentSpecification id, com.yahoo.component.ComponentSpecification classId) Create spec for a component from the container-search-and-docproc bundle with the given id and classId.fromSearchAndDocproc
(String className) Create spec for a component from the container-search-and-docproc bundle with the given class name as id.fromStrings
(String idSpec, String classSpec, String bundleSpec) Return a new instance of the specification with bundle name alterednestInNamespace
(com.yahoo.component.ComponentId namespace)
-
Field Details
-
CONTAINER_SEARCH_AND_DOCPROC
- See Also:
-
id
public final com.yahoo.component.ComponentId id -
classId
public final com.yahoo.component.ComponentSpecification classId -
bundle
public final com.yahoo.component.ComponentSpecification bundle
-
-
Constructor Details
-
BundleInstantiationSpecification
public BundleInstantiationSpecification(com.yahoo.component.ComponentSpecification id, com.yahoo.component.ComponentSpecification classId, com.yahoo.component.ComponentSpecification bundle) -
BundleInstantiationSpecification
public BundleInstantiationSpecification(com.yahoo.component.ComponentId id, com.yahoo.component.ComponentSpecification classId, com.yahoo.component.ComponentSpecification bundle)
-
-
Method Details
-
fromSearchAndDocproc
Create spec for a component from the container-search-and-docproc bundle with the given class name as id. -
fromSearchAndDocproc
public static BundleInstantiationSpecification fromSearchAndDocproc(com.yahoo.component.ComponentSpecification id, com.yahoo.component.ComponentSpecification classId) Create spec for a component from the container-search-and-docproc bundle with the given id and classId. -
fromStrings
public static BundleInstantiationSpecification fromStrings(String idSpec, String classSpec, String bundleSpec) -
inBundle
Return a new instance of the specification with bundle name altered- Parameters:
bundleName
- the new name of the bundle- Returns:
- the new instance of the specification
-
getClassName
-
nestInNamespace
-