
public class DefaultModletProvider extends Object implements ModletProvider
ModletProvider implementation.ModelContext.findModlets(org.jomc.modlet.Modlets)| Modifier and Type | Field and Description | 
|---|---|
static String | 
ENABLED_ATTRIBUTE_NAME
Constant for the name of the model context attribute backing property  
enabled. | 
static String | 
MODLET_LOCATION_ATTRIBUTE_NAME
Constant for the name of the model context attribute backing property  
modletLocation. | 
static String | 
VALIDATING_ATTRIBUTE_NAME
Constant for the name of the model context attribute backing property  
validating. | 
| Constructor and Description | 
|---|
DefaultModletProvider()
Creates a new  
DefaultModletProvider instance. | 
| Modifier and Type | Method and Description | 
|---|---|
Modlets | 
findModlets(ModelContext context)
Deprecated. 
 
As of JOMC 1.6, this method has been replaced by  
findModlets(org.jomc.modlet.ModelContext, org.jomc.modlet.Modlets).
 This method will be removed in JOMC 2.0. | 
Modlets | 
findModlets(ModelContext context,
                      Modlets modlets)
Searches a given context for  
Modlets. | 
Modlets | 
findModlets(ModelContext context,
                      String location)
Searches a given context for  
Modlets. | 
static String | 
getDefaultModletLocation()
Gets the default location searched for  
Modlet resources. | 
static int | 
getDefaultOrdinal()
Gets the default ordinal number of the provider. 
 | 
String | 
getModletLocation()
Gets the location searched for  
Modlet resources. | 
int | 
getOrdinal()
Gets the ordinal number of the provider. 
 | 
static boolean | 
isDefaultEnabled()
Gets a flag indicating the provider is enabled by default. 
 | 
static boolean | 
isDefaultValidating()
Gets a flag indicating the provider is validating resources by default. 
 | 
boolean | 
isEnabled()
Gets a flag indicating the provider is enabled. 
 | 
boolean | 
isValidating()
Gets a flag indicating the provider is validating resources. 
 | 
static void | 
setDefaultEnabled(Boolean value)
Sets the flag indicating the provider is enabled by default. 
 | 
static void | 
setDefaultModletLocation(String value)
Sets the default location searched for  
Modlet resources. | 
static void | 
setDefaultOrdinal(Integer value)
Sets the default ordinal number of the provider. 
 | 
static void | 
setDefaultValidating(Boolean value)
Sets the flag indicating the provider is validating resources by default. 
 | 
void | 
setEnabled(Boolean value)
Sets the flag indicating the provider is enabled. 
 | 
void | 
setModletLocation(String value)
Sets the location searched for  
Modlet resources. | 
void | 
setOrdinal(Integer value)
Sets the ordinal number of the provider. 
 | 
void | 
setValidating(Boolean value)
Sets the flag indicating the provider is validating resources. 
 | 
public static final String ENABLED_ATTRIBUTE_NAME
enabled.public static final String MODLET_LOCATION_ATTRIBUTE_NAME
modletLocation.public static final String VALIDATING_ATTRIBUTE_NAME
validating.public DefaultModletProvider()
DefaultModletProvider instance.public static boolean isDefaultEnabled()
The default enabled flag is controlled by system property
 org.jomc.modlet.DefaultModletProvider.defaultEnabled holding a value indicating the provider is
 enabled by default. If that property is not set, the true default is returned.
true, if the provider is enabled by default; false, if the provider is disabled by
 default.isEnabled(), 
setDefaultEnabled(java.lang.Boolean)public static void setDefaultEnabled(Boolean value)
value - The new value of the flag indicating the provider is enabled by default or null.isDefaultEnabled()public final boolean isEnabled()
true, if the provider is enabled; false, if the provider is disabled.isDefaultEnabled(), 
setEnabled(java.lang.Boolean)public final void setEnabled(Boolean value)
value - The new value of the flag indicating the provider is enabled or null.isEnabled()public static String getDefaultModletLocation()
Modlet resources.
 The default Modlet location is controlled by system property
 org.jomc.modlet.DefaultModletProvider.defaultModletLocation holding the location to search for
 Modlet resources by default. If that property is not set, the META-INF/jomc-modlet.xml default is
 returned.
Modlet resources by default.setDefaultModletLocation(java.lang.String)public static void setDefaultModletLocation(String value)
Modlet resources.value - The new default location to search for Modlet resources or null.getDefaultModletLocation()public final String getModletLocation()
Modlet resources.Modlet resources.getDefaultModletLocation(), 
setModletLocation(java.lang.String)public final void setModletLocation(String value)
Modlet resources.value - The new location to search for Modlet resources or null.getModletLocation()public static boolean isDefaultValidating()
The default validating flag is controlled by system property
 org.jomc.modlet.DefaultModletProvider.defaultValidating holding a value indicating the provider is
 validating resources by default. If that property is not set, the true default is returned.
true, if the provider is validating resources by default; false, if the provider is not
 validating resources by default.isValidating(), 
setDefaultValidating(java.lang.Boolean)public static void setDefaultValidating(Boolean value)
value - The new value of the flag indicating the provider is validating resources by default or
 null.isDefaultValidating()public final boolean isValidating()
true, if the provider is validating resources; false, if the provider is not validating
 resources.isDefaultValidating(), 
setValidating(java.lang.Boolean)public final void setValidating(Boolean value)
value - The new value of the flag indicating the provider is validating resources or null.isValidating()public static int getDefaultOrdinal()
The default ordinal number is controlled by system property
 org.jomc.modlet.DefaultModletProvider.defaultOrdinal holding the default ordinal number of the provider.
 If that property is not set, the 0 default is returned.
setDefaultOrdinal(java.lang.Integer)public static void setDefaultOrdinal(Integer value)
value - The new default ordinal number of the provider or null.getDefaultOrdinal()public final int getOrdinal()
getOrdinal in interface ModletProvidergetDefaultOrdinal(), 
setOrdinal(java.lang.Integer)public final void setOrdinal(Integer value)
value - The new ordinal number of the provider or null.getOrdinal()public Modlets findModlets(ModelContext context, String location) throws ModelException
Modlets.context - The context to search for Modlets.location - The location to search at.Modlets found at location in context or null, if no Modlets
 are found.NullPointerException - if context or location is null.ModelException - if searching the context fails.isValidating(), 
VALIDATING_ATTRIBUTE_NAME@Deprecated public Modlets findModlets(ModelContext context) throws ModelException
findModlets(org.jomc.modlet.ModelContext, org.jomc.modlet.Modlets).
 This method will be removed in JOMC 2.0.Modlets.findModlets in interface ModletProvidercontext - The context to search for Modlets.Modlets found in the context or null, if no Modlets are found or the provider
 is disabled.ModelException - if searching the context fails.isEnabled(), 
getModletLocation(), 
findModlets(org.jomc.modlet.ModelContext, java.lang.String), 
ENABLED_ATTRIBUTE_NAME, 
MODLET_LOCATION_ATTRIBUTE_NAMEpublic Modlets findModlets(ModelContext context, Modlets modlets) throws ModelException
Modlets.findModlets in interface ModletProvidercontext - The context to search for Modlets.modlets - The Modlets currently being searched.Modlets found in the context or null, if no Modlets are found or the provider
 is disabled.ModelException - if searching the context fails.isEnabled(), 
getModletLocation(), 
findModlets(org.jomc.modlet.ModelContext, java.lang.String), 
ENABLED_ATTRIBUTE_NAME, 
MODLET_LOCATION_ATTRIBUTE_NAMECopyright © 2005–2014 The JOMC Project. All rights reserved.