Java Code Examples for org.apache.xbean.recipe.ObjectRecipe#setRegistry()
The following examples show how to use
org.apache.xbean.recipe.ObjectRecipe#setRegistry() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReflectionService.java From component-runtime with Apache License 2.0 | 5 votes |
private ObjectRecipe newRecipe(final Class clazz) { final ObjectRecipe recipe = new ObjectRecipe(clazz); recipe.setRegistry(propertyEditorRegistry); recipe.allow(org.apache.xbean.recipe.Option.FIELD_INJECTION); recipe.allow(org.apache.xbean.recipe.Option.PRIVATE_PROPERTIES); recipe.allow(org.apache.xbean.recipe.Option.CASE_INSENSITIVE_PROPERTIES); recipe.allow(org.apache.xbean.recipe.Option.IGNORE_MISSING_PROPERTIES); return recipe; }
Example 2
Source File: ObjectFactoryImpl.java From component-runtime with Apache License 2.0 | 4 votes |
@Override public ObjectFactoryInstance createInstance(final String type) { final ObjectRecipe recipe = new ObjectRecipe(type); recipe.setRegistry(registry); return new ObjectFactoryInstanceImpl(recipe); }