public class ProcessProfile extends BaseProfile<ProcessProfile,ProcessProvider>
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_PREFIX
Prefix of property keys about processs.
|
static Pattern |
NAME_PATTERN
Process name pattern.
|
QUALIFIER| Constructor and Description |
|---|
ProcessProfile(String name,
Class<? extends ProcessProvider> providerClass,
ProfileContext context,
Map<String,String> configuration)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getConfiguration()
Returns the extra configuration of this process.
|
ProfileContext |
getContext()
Returns the current profile context.
|
String |
getName()
Returns this name.
|
Class<? extends ProcessProvider> |
getProviderClass()
Returns the class of corresponded provider.
|
protected ProcessProfile |
getThis()
Returns this object.
|
static Collection<? extends ProcessProfile> |
loadFrom(Properties properties,
ClassLoader loader)
Deprecated.
use
loadFrom(Properties, ProfileContext) instead |
static Collection<? extends ProcessProfile> |
loadFrom(Properties properties,
ProfileContext context)
Loads process profiles from the properties.
|
static void |
removeCorrespondingKeys(Properties properties)
Removes entries corresponding to process profiles.
|
void |
storeTo(Properties properties)
Stores this profile into the specified properties.
|
createProvider, getClassLoader, loadProviderClasspublic static final Pattern NAME_PATTERN
public static final String KEY_PREFIX
public ProcessProfile(String name, Class<? extends ProcessProvider> providerClass, ProfileContext context, Map<String,String> configuration)
name - the name of this processproviderClass - the class which can provide this processcontext - the current profile contextconfiguration - the extra configurationIllegalArgumentException - if any parameter is nullpublic String getName()
public Class<? extends ProcessProvider> getProviderClass()
BaseProfilegetProviderClass in class BaseProfile<ProcessProfile,ProcessProvider>public ProfileContext getContext()
BaseProfilegetContext in class BaseProfile<ProcessProfile,ProcessProvider>public Map<String,String> getConfiguration()
protected ProcessProfile getThis()
BaseProfilegetThis in class BaseProfile<ProcessProfile,ProcessProvider>@Deprecated public static Collection<? extends ProcessProfile> loadFrom(Properties properties, ClassLoader loader)
loadFrom(Properties, ProfileContext) insteadproperties - source propertiesloader - class loader to load the ProcessProviderIllegalArgumentException - if properties are invalid, or if any parameter is nullpublic static Collection<? extends ProcessProfile> loadFrom(Properties properties, ProfileContext context)
properties - source propertiescontext - the curren profile contextIllegalArgumentException - if properties are invalid, or if any parameter is nullpublic void storeTo(Properties properties)
properties - target properties objectIllegalArgumentException - if target properties already contains keys about this process,
or if any parameter is nullpublic static void removeCorrespondingKeys(Properties properties)
properties - target propertiesIllegalArgumentException - if any parameter is nullCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.