/** * Get the name of the class without the package. * * @param aClass * The class to get the information from. May not be <code>null</code>. * @return The local name of the passed class. */ @Nonnull public static String getClassLocalName (@Nonnull final Class <?> aClass) { ValueEnforcer.notNull (aClass, "Class"); return getClassLocalName (aClass.getName ()); }
/** * Get the name of the object's class without the package. * * @param aObject * The object to get the information from. May not be <code>null</code> * . * @return The local name of the passed object's class. */ @Nonnull public static String getClassLocalName (@Nonnull final Object aObject) { ValueEnforcer.notNull (aObject, "Object"); return getClassLocalName (aObject.getClass ()); }
@Nonnull @Nonempty protected String getStatisticsName (@Nonnull final JobExecutionContext aContext) { return "quartz." + CGStringHelper.getClassLocalName (aContext.getJobDetail ().getJobClass ()); }
@Nonnull @Nonempty protected String getJobName (@Nonnull final JobExecutionContext aContext) { return CGStringHelper.getClassLocalName (aContext.getJobDetail ().getJobClass ()); }
/** * Create a standard {@link ObjectName} using the default domain and only the * "type" property. The type property is the class local name of the specified * object. * * @param aObj * The object from which the name is to be created. * @return The non-<code>null</code> {@link ObjectName}. */ @Nonnull public static ObjectName createWithDefaultProperties (@Nonnull final Object aObj) { ValueEnforcer.notNull (aObj, "Object"); final Hashtable <String, String> aParams = new Hashtable <String, String> (); aParams.put (CJMX.PROPERTY_TYPE, CGStringHelper.getClassLocalName (aObj)); return create (aParams); }
public SessionApplicationScope (@Nonnull @Nonempty final String sScopeID) { super (sScopeID); if (ScopeUtils.debugSessionApplicationScopeLifeCycle (s_aLogger)) s_aLogger.info ("Created session application scope '" + sScopeID + "' of class " + CGStringHelper.getClassLocalName (this), ScopeUtils.getDebugStackTrace ()); }
/** * Create a new application web scope with the given ID. * * @param sScopeID * The scope ID to be used. May neither be <code>null</code> nor empty. */ public ApplicationScope (@Nonnull @Nonempty final String sScopeID) { super (sScopeID); if (ScopeUtils.debugApplicationScopeLifeCycle (s_aLogger)) s_aLogger.info ("Created application scope '" + sScopeID + "' of class " + CGStringHelper.getClassLocalName (this), ScopeUtils.getDebugStackTrace ()); }
public GlobalScope (@Nonnull @Nonempty final String sScopeID) { super (sScopeID); if (ScopeUtils.debugGlobalScopeLifeCycle (s_aLogger)) s_aLogger.info ("Created global scope '" + getID () + "' of class " + CGStringHelper.getClassLocalName (this), ScopeUtils.getDebugStackTrace ()); }
@Override protected void postDestroy () { if (ScopeUtils.debugRequestScopeLifeCycle (s_aLogger)) s_aLogger.info ("Destroyed request scope '" + getID () + "' of class " + CGStringHelper.getClassLocalName (this), ScopeUtils.getDebugStackTrace ()); }
@Override protected void postDestroy () { if (ScopeUtils.debugSessionScopeLifeCycle (s_aLogger)) s_aLogger.info ("Destroyed session scope '" + getID () + "' of class " + CGStringHelper.getClassLocalName (this), ScopeUtils.getDebugStackTrace ()); }
public RequestScope (@Nonnull @Nonempty final String sScopeID, @Nonnull @Nonempty final String sSessionID) { super (sScopeID); m_sSessionID = ValueEnforcer.notEmpty (sSessionID, "SessionID"); // done initialization if (ScopeUtils.debugRequestScopeLifeCycle (s_aLogger)) s_aLogger.info ("Created request scope '" + sScopeID + "' of class " + CGStringHelper.getClassLocalName (this), ScopeUtils.getDebugStackTrace ()); }
@Override protected void postDestroy () { if (ScopeUtils.debugApplicationScopeLifeCycle (s_aLogger)) s_aLogger.info ("Destroyed application scope '" + getID () + "' of class " + CGStringHelper.getClassLocalName (this), ScopeUtils.getDebugStackTrace ()); } }
@Override protected void postDestroy () { if (ScopeUtils.debugGlobalScopeLifeCycle (s_aLogger)) s_aLogger.info ("Destroyed global scope '" + getID () + "' of class " + CGStringHelper.getClassLocalName (this), ScopeUtils.getDebugStackTrace ()); }
@Override protected void postDestroy () { if (ScopeUtils.debugSessionApplicationScopeLifeCycle (s_aLogger)) s_aLogger.info ("Destroyed session application scope '" + getID () + "' of class " + CGStringHelper.getClassLocalName (this), ScopeUtils.getDebugStackTrace ()); } }
String sLocalName = CGStringHelper.getClassLocalName (aClass); sLocalName = sLocalName.substring (0, sLocalName.length () - "Type".length ());
String sLocalName = CGStringHelper.getClassLocalName (aClass); sLocalName = sLocalName.substring (0, sLocalName.length () - "Type".length ());
public SessionScope (@Nonnull @Nonempty final String sScopeID) { super (sScopeID); // Sessions are always displayed to see what's happening if (ScopeUtils.debugSessionScopeLifeCycle (s_aLogger)) s_aLogger.info ("Created session scope '" + getID () + "' of class " + CGStringHelper.getClassLocalName (this), ScopeUtils.getDebugStackTrace ()); }
/** * Create a standard {@link ObjectName} using the default domain and the * "type" and "name" properties. The type property is the class local name of * the specified object. * * @param aObj * The object from which the name is to be created. * @param sName * The value of the "name" JMX property * @return The non-<code>null</code> {@link ObjectName}. */ @Nonnull public static ObjectName createWithDefaultProperties (@Nonnull final Object aObj, @Nonnull final String sName) { ValueEnforcer.notNull (aObj, "Object"); ValueEnforcer.notNull (sName, "Name"); final Hashtable <String, String> aParams = new Hashtable <String, String> (); aParams.put (CJMX.PROPERTY_TYPE, CGStringHelper.getClassLocalName (aObj)); aParams.put (CJMX.PROPERTY_NAME, getCleanPropertyValue (sName)); return create (aParams); } }
CGStringHelper.getClassLocalName (aChild.getClass ()));
aTableAttrs.addBodyRow () .addCell (aEntry.getKey ()) .addCell (CGStringHelper.getClassLocalName (aEntry.getValue ())) .addCell (UITextFormatter.getToStringContent (aEntry.getValue ())); aNodeList.addChild (aTableAttrs);