public class OptionsContext extends Object implements OptionsService.OptionsServiceContext
OptionsService.
This class is safe to be accessed from several threads at the same time.
OptionsService| Constructor and Description |
|---|
OptionsContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntityOption(Class<?> entityType,
Option<?> option) |
void |
addGlobalOption(Option<?> option) |
void |
addPropertyOption(Class<?> entityType,
String propertyName,
Option<?> option) |
OptionsContainer |
getEntityOptions(Class<?> entityType) |
OptionsContainer |
getGlobalOptions() |
OptionsContainer |
getPropertyOptions(Class<?> entityType,
String propertyName) |
String |
toString() |
public void addGlobalOption(Option<?> option)
public void addPropertyOption(Class<?> entityType, String propertyName, Option<?> option)
public OptionsContainer getGlobalOptions()
getGlobalOptions in interface OptionsService.OptionsServiceContextOptionsContainer with all the global optionspublic OptionsContainer getEntityOptions(Class<?> entityType)
getEntityOptions in interface OptionsService.OptionsServiceContextOptionsContainer with entity related optionspublic OptionsContainer getPropertyOptions(Class<?> entityType, String propertyName)
getPropertyOptions in interface OptionsService.OptionsServiceContextOptionsContainer with the property related optionsCopyright © 2010-2013 Red Hat, Inc., Emmanuel Bernard and various contributors. All Rights Reserved.