public CompiledOpenClass getCompiledOpenClass() throws RulesInstantiationException, ProjectResolvingException, ClassNotFoundException { return getRulesInstantiationStrategy().compile(); }
public Class<?> getInterfaceClass() throws RulesInstantiationException, ProjectResolvingException, ClassNotFoundException { if (interfaceClass != null) { return interfaceClass; } if (generatedInterfaceClass != null) { return generatedInterfaceClass; } log.info("Interface class is undefined for factory. Generated interface has been used."); generatedInterfaceClass = getRulesInstantiationStrategy().getInstanceClass(); return generatedInterfaceClass; }
public CompiledOpenClass getCompiledOpenClass() throws RulesInstantiationException, ProjectResolvingException, ClassNotFoundException { return getRulesInstantiationStrategy().compile(); }
public Class<?> getInterfaceClass() throws RulesInstantiationException, ProjectResolvingException, ClassNotFoundException { if (interfaceClass != null) { return interfaceClass; } if (generatedInterfaceClass != null) { return generatedInterfaceClass; } log.info("Interface class is undefined for factory. Generated interface has been used."); generatedInterfaceClass = getRulesInstantiationStrategy().getInstanceClass(); return generatedInterfaceClass; }
@SuppressWarnings("unchecked") public T newInstance() throws RulesInstantiationException, ProjectResolvingException, ClassNotFoundException { return (T) getRulesInstantiationStrategy().instantiate(); }
@SuppressWarnings("unchecked") public T newInstance() throws RulesInstantiationException, ProjectResolvingException, ClassNotFoundException { return (T) getRulesInstantiationStrategy().instantiate(); }