/** Creates an unbacked overridable query profile */ protected OverridableQueryProfile() { super(ComponentId.createAnonymousComponentId(simpleClassName)); }
private void setTestId() { id = ComponentId.createAnonymousComponentId("test_" + getClass().getName()); }
/** * Looks up all inherited profiles and adds any that matches this name. * This default implementation returns an empty profile. */ protected QueryProfile createSubProfile(String name,DimensionBinding dimensionBinding) { QueryProfile queryProfile = new QueryProfile(ComponentId.createAnonymousComponentId(name)); return queryProfile; }
/** Returns a clone of this which can be independently overridden */ @Override public OverridableQueryProfile clone() { if (isFrozen()) return this; OverridableQueryProfile clone=(OverridableQueryProfile)super.clone(); clone.initId(ComponentId.createAnonymousComponentId(simpleClassName)); return clone; }
private static AccessLog createAccessLog(AccessLogInterface accessLogInterface) { ComponentRegistry<AccessLogInterface> componentRegistry = new ComponentRegistry<>(); componentRegistry.register(ComponentId.createAnonymousComponentId("access-log"), accessLogInterface); componentRegistry.freeze(); return new AccessLog(componentRegistry); }