public SystemEventHelper() { systemEventInfoCache = new Cache<Class<? extends SystemEvent>, SystemEventInfo>( new Factory<Class<? extends SystemEvent>, SystemEventInfo>() { public SystemEventInfo newInstance(final Class<? extends SystemEvent> arg) throws InterruptedException { return new SystemEventInfo(arg); } } ); }
@Override public BeanInfo getComponentMetadata(FacesContext context, Resource ccResource) { DefaultFaceletFactory factory = (DefaultFaceletFactory) RequestStateManager.get(context, RequestStateManager.FACELET_FACTORY); DefaultFaceletFactory ourFactory = (DefaultFaceletFactory) factory; if (ourFactory.needsToBeRefreshed(ccResource.getURL())) { metadataCache.remove(ccResource); } return metadataCache.get(ccResource); }
public String getAliasedId(String id) { return idCache.get(id); }
@Override public Cache<Class<? extends SystemEvent>, EventInfo> newInstance(final Class<?> sourceClass) throws InterruptedException { Factory<Class<? extends SystemEvent>, EventInfo> eventInfoFactory = new Factory<Class<? extends SystemEvent>, EventInfo>() { @Override public EventInfo newInstance(final Class<? extends SystemEvent> systemEventClass) throws InterruptedException { return new EventInfo(systemEventClass, sourceClass); } }; return new Cache<>(eventInfoFactory); } };
public Cache<Class<? extends SystemEvent>, EventInfo> newInstance( final Class<?> sourceClass) throws InterruptedException { Factory<Class<? extends SystemEvent>, EventInfo> eventInfoFactory = new Factory<Class<? extends SystemEvent>, EventInfo>() { public EventInfo newInstance(final Class<? extends SystemEvent> systemEventClass) throws InterruptedException { return new EventInfo(systemEventClass, sourceClass); } }; return new Cache<Class<? extends SystemEvent>, EventInfo>(eventInfoFactory); } };
public EventInfo getEventInfo(Class<?> source) { Class<?> sourceClass = ((source == null) ? Void.class : source); return cache.get(sourceClass); }
public SystemEventHelper() { systemEventInfoCache = new Cache<>(new Factory<Class<? extends SystemEvent>, SystemEventInfo>() { @Override public SystemEventInfo newInstance(final Class<? extends SystemEvent> arg) throws InterruptedException { return new SystemEventInfo(arg); } }); }
public String getAliasedId(String id) { return idCache.get(id); }
public SystemEventHelper() { systemEventInfoCache = new Cache<>(new Factory<Class<? extends SystemEvent>, SystemEventInfo>() { @Override public SystemEventInfo newInstance(final Class<? extends SystemEvent> arg) throws InterruptedException { return new SystemEventInfo(arg); } }); }
@Override public Cache<Class<? extends SystemEvent>, EventInfo> newInstance(final Class<?> sourceClass) throws InterruptedException { Factory<Class<? extends SystemEvent>, EventInfo> eventInfoFactory = new Factory<Class<? extends SystemEvent>, EventInfo>() { @Override public EventInfo newInstance(final Class<? extends SystemEvent> systemEventClass) throws InterruptedException { return new EventInfo(systemEventClass, sourceClass); } }; return new Cache<>(eventInfoFactory); } };
public String getAliasedId(String id) { return idCache.get(id); }
public SystemEventHelper() { systemEventInfoCache = new Cache<>(new Factory<Class<? extends SystemEvent>, SystemEventInfo>() { @Override public SystemEventInfo newInstance(final Class<? extends SystemEvent> arg) throws InterruptedException { return new SystemEventInfo(arg); } }); }
@Override public Cache<Class<? extends SystemEvent>, EventInfo> newInstance(final Class<?> sourceClass) throws InterruptedException { Factory<Class<? extends SystemEvent>, EventInfo> eventInfoFactory = new Factory<Class<? extends SystemEvent>, EventInfo>() { @Override public EventInfo newInstance(final Class<? extends SystemEvent> systemEventClass) throws InterruptedException { return new EventInfo(systemEventClass, sourceClass); } }; return new Cache<>(eventInfoFactory); } };