public interface AllowedComponents
Modifier and Type | Interface and Description |
---|---|
static interface |
AllowedComponents.InstantiationDelegate<T>
This functional interface allows you to instantiate and return an object of type T
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Component> |
getAllowedComponents(Resource resource)
Returns the list of all the allowed components of a container.
|
<T> java.util.List<T> |
getAllowedComponents(Resource resource,
AllowedComponents.InstantiationDelegate<T> delegatedInstantiation)
Returns a list of object of type T associated with each allowed component associated with the provided resource.
|
java.util.List<Component> getAllowedComponents(Resource resource)
resource
- the resource for which to list allowed componentsjava.lang.IllegalStateException
- if ComponentManager or ContentPolicyManager unavailable<T> java.util.List<T> getAllowedComponents(Resource resource, AllowedComponents.InstantiationDelegate<T> delegatedInstantiation)
resource
- the resource for which to list allowed componentsdelegatedInstantiation
- lambda function that returns an instance of type Tjava.lang.IllegalStateException
- if ComponentManager or ContentPolicyManager unavailable"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"