/** * Register a component class using a given registration strategy. * * @param componentClass class to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Class<?> componentClass, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, null, modelEnhancer); if (result) { classes.add(componentClass); } return result; }
/** * Register a component class using a given registration strategy. * * @param componentClass class to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Class<?> componentClass, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, null, modelEnhancer); if (result) { classes.add(componentClass); } return result; }
/** * Register a component class as a contract provider with an explicitly specified binding priority. * * @param componentClass class to be introspected as a contract provider and registered. * @param priority explicitly specified binding priority for the provider contracts implemented * by the component. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Class<?> componentClass, int priority, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final boolean result = registerModel(componentClass, priority, null, modelEnhancer); if (result) { classes.add(componentClass); } return result; }
/** * Register a component class as a contract provider with an explicitly specified binding priority. * * @param componentClass class to be introspected as a contract provider and registered. * @param priority explicitly specified binding priority for the provider contracts implemented * by the component. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Class<?> componentClass, int priority, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final boolean result = registerModel(componentClass, priority, null, modelEnhancer); if (result) { classes.add(componentClass); } return result; }
/** * Register a component class as a contract provider for the specified contracts. * * @param componentClass class to be introspected as a contract provider and registered. * @param contracts contracts with their priorities to bind the component class to. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Class<?> componentClass, Map<Class<?>, Integer> contracts, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, contracts, modelEnhancer); if (result) { classes.add(componentClass); } return result; }
/** * Register a component class as a contract provider for the specified contracts. * * @param componentClass class to be introspected as a contract provider and registered. * @param contracts contracts with their priorities to bind the component class to. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Class<?> componentClass, Map<Class<?>, Integer> contracts, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, contracts, modelEnhancer); if (result) { classes.add(componentClass); } return result; }
/** * Register a component using a given registration strategy. * * @param component instance to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Object component, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final Class<?> componentClass = component.getClass(); final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, null, modelEnhancer); if (result) { instances.add(component); } return result; }
/** * Register a component using a given registration strategy. * * @param component instance to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Object component, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final Class<?> componentClass = component.getClass(); final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, null, modelEnhancer); if (result) { instances.add(component); } return result; }
/** * Register a component as a contract provider with an explicitly specified binding priority. * * @param component instance to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param priority explicitly specified binding priority for the provider contracts implemented * by the component. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Object component, int priority, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final Class<?> componentClass = component.getClass(); final boolean result = registerModel(componentClass, priority, null, modelEnhancer); if (result) { instances.add(component); } return result; }
/** * Register a component as a contract provider for the specified contracts. * * @param component instance to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param contracts contracts with their priorities to bind the component to. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Object component, Map<Class<?>, Integer> contracts, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final Class<?> componentClass = component.getClass(); final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, contracts, modelEnhancer); if (result) { instances.add(component); } return result; }
/** * Register a component as a contract provider with an explicitly specified binding priority. * * @param component instance to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param priority explicitly specified binding priority for the provider contracts implemented * by the component. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Object component, int priority, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final Class<?> componentClass = component.getClass(); final boolean result = registerModel(componentClass, priority, null, modelEnhancer); if (result) { instances.add(component); } return result; }
/** * Register a component as a contract provider for the specified contracts. * * @param component instance to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param contracts contracts with their priorities to bind the component to. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Object component, Map<Class<?>, Integer> contracts, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final Class<?> componentClass = component.getClass(); final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, contracts, modelEnhancer); if (result) { instances.add(component); } return result; }
/** * Register a component class as a contract provider for the specified contracts. * * @param componentClass class to be introspected as a contract provider and registered. * @param contracts contracts to bind the component class to. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Class<?> componentClass, Set<Class<?>> contracts, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, asMap(contracts), modelEnhancer); if (result) { classes.add(componentClass); } return result; }
/** * Register a component as a contract provider for the specified contracts. * * @param component instance to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param contracts contracts to bind the component to. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Object component, Set<Class<?>> contracts, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final Class<?> componentClass = component.getClass(); final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, asMap(contracts), modelEnhancer); if (result) { instances.add(component); } return result; }
/** * Register a component class as a contract provider for the specified contracts. * * @param componentClass class to be introspected as a contract provider and registered. * @param contracts contracts to bind the component class to. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Class<?> componentClass, Set<Class<?>> contracts, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, asMap(contracts), modelEnhancer); if (result) { classes.add(componentClass); } return result; }
/** * Register a component as a contract provider for the specified contracts. * * @param component instance to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param contracts contracts to bind the component to. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Object component, Set<Class<?>> contracts, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final Class<?> componentClass = component.getClass(); final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, asMap(contracts), modelEnhancer); if (result) { instances.add(component); } return result; }
/** * Register a component class using a given registration strategy. * * @param componentClass class to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Class<?> componentClass, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, null, modelEnhancer); if (result) { classes.add(componentClass); } return result; }
/** * Register a component class using a given registration strategy. * * @param componentClass class to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Class<?> componentClass, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, null, modelEnhancer); if (result) { classes.add(componentClass); } return result; }
/** * Register a component class using a given registration strategy. * * @param componentClass class to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Class<?> componentClass, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, null, modelEnhancer); if (result) { classes.add(componentClass); } return result; }
/** * Register a component using a given registration strategy. * * @param component instance to be introspected as a contract provider and registered, based * on the registration strategy decision. * @param modelEnhancer custom contract provider model enhancer. * @return {@code true} if the component registration was successful. */ public boolean register(Object component, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) { final Class<?> componentClass = component.getClass(); final boolean result = registerModel(componentClass, ContractProvider.NO_PRIORITY, null, modelEnhancer); if (result) { instances.add(component); } return result; }