public T getInstance(Class<T> type, Annotation... qualifiers) { PortletResponse response = PortletHelper.getResponse(); if (type.isInstance(response)) { return type.cast(response); } else { throw new ChellException( "Can not inject object of class '" + type.getName() + "' during " + PortletHelper.getPhase() + " phase."); } }
public Locale getInstance(Class<Locale> type, Annotation... qualifiers) { return PortletHelper.getRequest().getLocale(); }
public PortletPreferences getInstance( Class<PortletPreferences> type, Annotation... qualifiers) { return PortletHelper.getPreferences(); }
public PortletSession getInstance(Class<PortletSession> type, Annotation... qualifiers) { return PortletHelper.getSession(); }
public PortletResponse getInstance(Class<PortletResponse> type, Annotation... qualifiers) { return PortletHelper.getResponse(); }
public PortletRequest getInstance(Class<PortletRequest> type, Annotation... qualifiers) { return PortletHelper.getRequest(); }
public PortletConfig getInstance(Class<PortletConfig> type, Annotation... qualifiers) { return PortletHelper.getPortletConfig(); }
public Model getInstance(Class<Model> type, Annotation... qualifiers) { return PortletHelper.getModel(); }