本文整理了Java中org.apache.wicket.core.util.lang.WicketObjects
类的一些代码示例,展示了WicketObjects
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WicketObjects
类的具体详情如下:
包路径:org.apache.wicket.core.util.lang.WicketObjects
类名称:WicketObjects
[英]Object (de)serialization utilities.
[中]对象(反)序列化实用程序。
代码示例来源:origin: org.apache.wicket/wicket-core
/**
* @return Assuming scope ist a fully qualified class name, than get the associated class
*/
public final Class<?> getScopeClass()
{
return WicketObjects.resolveClass(scope);
}
代码示例来源:origin: org.apache.wicket/wicket-core
/**
* Construct and add initializer from the provided class name.
*
* @param className
*/
private void addInitializer(final String className)
{
IInitializer initializer = WicketObjects.newInstance(className);
if (initializer != null)
{
initializers.add(initializer);
}
}
代码示例来源:origin: org.apache.wicket/wicket-core
/**
* @return Size of this session
*/
public final long getSizeInBytes()
{
return WicketObjects.sizeof(this);
}
代码示例来源:origin: apache/wicket
/**
* Constructor.
* Uses the form's model object as an original state
*
* @param id
* component id
* @param form
* filter form of the filter toolbar
* @param goModel
* model for the label of the 'go' button
* @param clearModel
* model for the label of the 'clear' button
*/
public GoAndClearFilter(final String id, final FilterForm<?> form,
final IModel<String> goModel, final IModel<String> clearModel)
{
this(id, goModel, clearModel, WicketObjects.cloneObject(form.getDefaultModelObject()));
}
代码示例来源:origin: apache/wicket
/**
* Initializes agent when it is attached to an already running JVM.
*
* @param agentArgs
* Arguments passed in to the agent
* @param instrumentation
* The instrumentation class
*/
public static void agentmain(String agentArgs, Instrumentation instrumentation)
{
InstrumentationObjectSizeOfStrategy strategy = new InstrumentationObjectSizeOfStrategy(
instrumentation);
WicketObjects.setObjectSizeOfStrategy(strategy);
}
代码示例来源:origin: apache/wicket
/**
* This method should be implemented by subclasses to provide behavior for the clear button.
*
* @param button
* the 'clear' button
*
*/
@SuppressWarnings("unchecked")
protected void onClearSubmit(final Button button)
{
Form<Object> form = (Form<Object>)button.getForm();
form.setDefaultModelObject(WicketObjects.cloneObject(originalState));
}
代码示例来源:origin: org.apache.wicket/wicket-objectsizeof-agent
/**
* Initializes agent when it is attached to an already running JVM.
*
* @param agentArgs
* Arguments passed in to the agent
* @param instrumentation
* The instrumentation class
*/
public static void agentmain(String agentArgs, Instrumentation instrumentation)
{
InstrumentationObjectSizeOfStrategy strategy = new InstrumentationObjectSizeOfStrategy(
instrumentation);
WicketObjects.setObjectSizeOfStrategy(strategy);
}
代码示例来源:origin: apache/wicket
/**
* @return the type to use when updating the model for this form component
*/
@SuppressWarnings("unchecked")
public final Class<T> getType()
{
return typeName == null ? null : (Class<T>)WicketObjects.resolveClass(typeName);
}
代码示例来源:origin: apache/wicket
/**
* @return Size of this page in bytes
*/
@Override
public final long getSizeInBytes()
{
return WicketObjects.sizeof(this);
}
代码示例来源:origin: org.apache.wicket/wicket-core
Component clone = (Component) cloneObject(object);
clone.detach();
IDetachable clone = (IDetachable) cloneObject(object);
clone.detach();
代码示例来源:origin: apache/wicket
/**
* Construct and add initializer from the provided class name.
*
* @param className
*/
private void addInitializer(final String className)
{
IInitializer initializer = WicketObjects.newInstance(className);
if (initializer != null)
{
initializers.add(initializer);
}
}
代码示例来源:origin: apache/wicket
/**
* Initializes agent before the main function of the application is executed.
*
* @param agentArgs
* Arguments passed in to the agent
* @param instrumentation
* The instrumentation class
*/
public static void premain(String agentArgs, Instrumentation instrumentation)
{
InstrumentationObjectSizeOfStrategy strategy = new InstrumentationObjectSizeOfStrategy(
instrumentation);
WicketObjects.setObjectSizeOfStrategy(strategy);
}
}
代码示例来源:origin: org.apache.wicket/wicket-core
/**
* Gets the scoping class, used for class loading and to determine the package.
*
* @return the scoping class
*/
public final Class<?> getScope()
{
return WicketObjects.resolveClass(scopeName);
}
代码示例来源:origin: org.apache.wicket/wicket-core
/**
* @return Size of this page in bytes
*/
@Override
public final long getSizeInBytes()
{
return WicketObjects.sizeof(this);
}
代码示例来源:origin: apache/wicket
Component clone = (Component) cloneObject(object);
clone.detach();
IDetachable clone = (IDetachable) cloneObject(object);
clone.detach();
代码示例来源:origin: org.wicketstuff/wicket-mount-core
public static boolean mountAll(WebApplication app)
{
final String mapInfoClassName = app.getClass().getCanonicalName() + "MountInfo";
try
{
final MountInfo mountInfo = (MountInfo) WicketObjects.newInstance(mapInfoClassName);
for(IRequestMapper mapper: mountInfo.getMountList())
{
app.mount(mapper);
}
return true;
} catch (Exception ex)
{
LOG.warn("Failed to automount pages.",ex);
return false;
}
}
}
代码示例来源:origin: org.apache.wicket/wicket-objectsizeof-agent
/**
* Initializes agent before the main function of the application is executed.
*
* @param agentArgs
* Arguments passed in to the agent
* @param instrumentation
* The instrumentation class
*/
public static void premain(String agentArgs, Instrumentation instrumentation)
{
InstrumentationObjectSizeOfStrategy strategy = new InstrumentationObjectSizeOfStrategy(
instrumentation);
WicketObjects.setObjectSizeOfStrategy(strategy);
}
}
代码示例来源:origin: org.apache.wicket/wicket-core
/**
* @return The component class that could not be instantiated
*/
public Class<? extends IRequestableComponent> getComponentClass()
{
return WicketObjects.resolveClass(componentClassName);
}
}
代码示例来源:origin: apache/wicket
/**
* @return Size of this session
*/
public final long getSizeInBytes()
{
return WicketObjects.sizeof(this);
}
代码示例来源:origin: apache/wicket
/**
* @return Assuming scope ist a fully qualified class name, than get the associated class
*/
public final Class<?> getScopeClass()
{
return WicketObjects.resolveClass(scope);
}
内容来源于网络,如有侵权,请联系作者删除!