rgsakura reflectionn插件

你的位置: >
> jQuery reflection 插件实现图片半透明渐变倒影效果
AD: AD:如此火爆的微社区?你还不加入? AD:自己运营的公众号很多?管理不方便?
自动实现图片半透明渐变倒影效果的插件。可自定义设置倒影的高度,透明度。支持所有主流,文件大小,小于5K。 实现方法很简单,首先需要下载 jQuery 库文件包 和
插件,完了后,具体操作如下:jQuery 部分:
代码中的 height:.5 表示倒影的高度。 opacity:.5 表示倒影的透明度。xhtml 部分:
转载请注明: &
与本文相关的文章
赞助博主微信扫一扫赞助博主Reflection-Christina Aguilera, ReflectionMP3下载,歌词下载 - 虾米音乐
Loading...
Reflection
@微博好友,送歌给Ta!
Reflection 倒影(电影花木兰主题曲)
CHRISTINA AGUIELRA (演唱:克莉丝汀娜)
Look at me 看着我,
You may think you see who I really am你也许以为你看到了真正的我
But you’ll never know me但你永远不会了解我
every day每一天
It’s as if I play a part似乎我真的扮演一个角色,发挥着我的作用。
Now I see现在我明白,
If I wear a mask如果自我掩饰,
I can fool the world我可以愚弄这个世界,
But I cannot fool my heart 却无法欺骗自己的内心。
Who is that girl I see,我见到的那女孩是谁,
Staring straight back at me?两眼直直地望着我。
When will my reflection show何时我的倒影才能显示出
Who I am inside?真正的自我。
I am now in a world我此时身在一个世界,
Where I have to hide my heart在这里我不得不掩饰我的内心世界。
And what I believe in 以及我所信仰的。
But somehow但无论如何,
I will show the world我将告诉这世界,
What’s inside my heart 我心中的秘密,
And beloved for whom I am我爱这样的我。
Who is that girl I see,我见到的那女孩是谁,
Staring straight back at me?两眼直直地望着我。
Why is my reflection someone为何我自己的倒影
I don’t know?我自己却都不认识?
Must I pretend that难道我必须
I’m someone else for all time?一直都扮演一个非我的角色?
There’s a heart that must be free to fly有一颗心需要自由飞翔,
That burns with a need
To know the reason why它迫切地需要知道
Why must we all conceal what wethink, how we feel?为何我们都得隐瞒自己在想什么,自己的真正感受
Must there be a secret of me难道有一个秘密,
I’m forced to hide?必须要我隐藏?
I won’t pretend that I’m someone else
For all time我不会一直去扮演另一个身份角色。
When will my reflection show Who I am inside 何时我的倒影才能显现出真正的自我
When will my reflection show Who I am inside 何时我的倒影才能显现出真正的自我
文本歌词最后由
编辑于 16:36
LRC歌词最后由
编辑于 11:34
你可能会喜欢的精选集
喜欢Reflection的人们也喜欢...
您需要登录后才可以留言,请用虾米帐号
李玟的《自己》是花木兰中文版主题曲,不叫翻唱。就像25种语言的《Let it go》,不能说其他24种都是英文版的翻唱吧。
弱我的人一定是点错了-_,-
这首歌说明了歌手的实力,从那个年代红到现在。
还是英文的好听。
克里斯蒂娜
擦妈的唱功真不是盖的
终于找到了!妈呀!
who i am inside
喜欢这首歌的,推荐再听一首《the flame》,悉尼奥运会主题曲,中文名《圣火》
(第1页, 共328条)
收藏Reflection的人们
听Reflection的人也听
关注虾米:当前访客身份:游客 [
当前位置:
发布于 日 16时,
本文实例讲述了php利用反射实现插件机制的方法。分享给大家供大家参考。具体实现方法如下:/content/368428.html
代码片段(1)
1.&[代码][PHP]代码&&&&
PHP反射API--利用反射技术实现的插件系统架构
interface Iplugin{
public static function getName();
function findPlugins(){
$plugins = array();
foreach (get_declared_classes() as $class){
$reflectionClass = new ReflectionClass($class);
if ($reflectionClass-&implementsInterface('Iplugin')) {
$plugins[] = $reflectionC
function computeMenu(){
$menu = array();
foreach (findPlugins() as $plugin){
if ($plugin-&hasMethod('getMenuItems')) {
$reflectionMethod = $plugin-&getMethod('getMenuItems');
if ($reflectionMethod-&isStatic()) {
$items = $reflectionMethod-&invoke(null);
$pluginInstance = $plugin-&newInstance();
$items = $reflectionMethod-&invoke($pluginInstance);
$menu = array_merge($menu,$items);
function computeArticles(){
$articles = array();
foreach (findPlugins() as $plugin){
if ($plugin-&hasMethod('getArticles')) {
$reflectionMethod = $plugin-&getMethod('getArticles');
if ($reflectionMethod-&isStatic()) {
$items = $reflectionMethod-&invoke(null);
$pluginInstance = $plugin-&newInstance();
$items = $reflectionMethod-&invoke($pluginInstance);
$articles = array_merge($articles,$items);
class MycoolPugin implements Iplugin {
public static function getName(){
return 'MycoolPlugin';
public static function getMenuItems(){
return array(array('description'=&'MycoolPlugin','link'=&'/MyCoolPlugin'));
public static function getArticles(){
return array(array('path'=&'/MycoolPlugin','title'=&'This is a really cool article','text'=& 'xxxxxxxxx' ));
$menu = computeMenu();
= computeArticles();
print_r($menu);
print_r($articles);
开源中国-程序员在线工具:
相关的代码(1159)
连个注释都没,哥你写天书呢?
2楼:covan 发表于
求注释,学习学习
3楼:JackHao 发表于
drupal中大量使用了这种方式
开源从代码分享开始
开元中国2015的其它代码我已经开发了一个在思考库查询所有具有特定注释的类.a切工作就像一个charisma,直到我决定从我的应用程序创建一个Eclipse插件。然后思考停止工作。
由于我的应用程序工作正常时,不属于一个Eclipse插件,我想这应该是一个类加载器的问题。
所以我说我Reflections类插件Activator类的类加载器,上下文类加载器,和所有其他的类装载器,我可以想像 CodeGo.net,没有任何这是我的代码的简化版本:
ConfigurationBuilder config = new ConfigurationBuilder();
config.addClassLoaders(thePluginActivatorClassLoader);
config.addClassLoaders(ClasspathHelper.getContextClassLoader());
config.addClassLoaders("all the classloaders I could imagine");
config.filterInputsBy(new FilterBuilder().include("package I want to analyze"));
Reflections reflections = new Reflections(config);
Set&Class&?&& classes = reflections.getTypesAnnotatedWith(MyAnnotation.class); //this Set is empty
我也想加入我要加载的类的网址ConfigurationBuilder类,但它并没有帮助。
可以,如果有一种方法,使Reflections工作作为Eclipse插件的一部分?,或者我应该更好地寻找另一种选择?非常感谢,我实在不明白这件事。
本文地址 :CodeGo.net/386763/
-------------------------------------------------------------------------------------------------------------------------
1. 我你已经知道了如何创建包(否则,请在此)。
调试运行和Reflations API的探索后,我已经意识到,问题在于简单地思考无法读取OSGi的网址(导致异常:
org.reflections.ReflectionsException: could not create Vfs.Dir from url,
no matching UrlType was found
CodeGo.net
而这个建议:
either use fromURL(final URL url, final List&UrlType& urlTypes)
or use the static setDefaultURLTypes(final List&UrlType& urlTypes)
or addDefaultURLTypes(UrlType urlType) with your specialized UrlType.
所以我相信一个UrlType OSGi的(例如class BundleUrlType implements UrlType {...}),并记录它是这样的:
Vfs.addDefaultURLTypes(new BundleUrlType());
应该从包里面思考。这里描述的依赖关系的反思应该被添加到Eclipse插件项目。
这是我的样品的MANIFEST.MF看上去就像添加需要的jar文件后:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ReflectivePlugin
Bundle-SymbolicName: ReflectivePlugin
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: reflectiveplugin.Activator
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: javax.version="1.0.0",
org.osgi.version="1.3.0",
org.osgi.service.version="1.3",
org.osgi.util.version="1.3.1"
Bundle-ClassPath: .,
lib/dom4j-1.6.1.jar,
lib/guava-r08.jar,
lib/javassist-3.12.1.GA.jar,
lib/reflections-0.9.5.jar,
lib/slf4j-api-1.6.1.jar,
lib/xml-apis-1.0.b2.jar
Export-Package: reflectiveplugin,
reflectiveplugin.data
注:V. 0.9.5用于思考
下面是一个示例UrlType
import java.io.IOE
import java.io.InputS
import java.net.URL;
import java.util.E
import java.util.I
import org.osgi.framework.B
import org.reflections.vfs.V
import org.reflections.vfs.Vfs.D
import org.reflections.vfs.Vfs.F
import org.reflections.vfs.Vfs.UrlT
import mon.collect.AbstractI
public class BundleUrlType implements UrlType {
public static final String BUNDLE_PROTOCOL = "bundleresource";
private final B
public BundleUrlType(Bundle bundle) {
this.bundle =
public boolean matches(URL url) {
return BUNDLE_PROTOCOL.equals(url.getProtocol());
public Dir createDir(URL url) {
return new BundleDir(bundle, url);
public class BundleDir implements Dir {
private final B
public BundleDir(Bundle bundle, URL url) {
this(bundle, url.getPath());
public BundleDir(Bundle bundle, String p) {
this.bundle =
this.path =
if (path.startsWith(BUNDLE_PROTOCOL + ":")) {
path = path.substring((BUNDLE_PROTOCOL + ":").length());
public String getPath() {
public Iterable&File& getFiles() {
return new Iterable&Vfs.File&() {
public Iterator&Vfs.File& iterator() {
return new AbstractIterator&Vfs.File&() {
final Enumeration&URL& entries = bundle.findEntries(path, "*.class", true);
protected Vfs.File computeNext() {
return entries.hasMoreElements() ? new BundleFile(BundleDir.this, entries.nextElement()) : endOfData();
public void close() { }
public class BundleFile implements File {
private final BundleD
private final S
private final URL
public BundleFile(BundleDir dir, URL url) {
this.dir =
this.url =
String path = url.getFile();
this.name = path.substring(path.lastIndexOf("/") + 1);
public String getName() {
public String getRelativePath() {
return getFullPath().substring(dir.getPath().length());
public String getFullPath() {
return url.getFile();
public InputStream openInputStream() throws IOException {
return url.openStream();
这是我在Activator类创建感言:
private Reflections createReflections(Bundle bundle) {
Vfs.addDefaultURLTypes(new BundleUrlType(bundle));
Reflections reflections = new Reflections(new Object[] { "reflectiveplugin.data" });
最后一位是非常,但仍然很重要:如果您运行的Eclipse插件(运行方式/ OSGi的内部,你必须还你的类的输出目录添加到路径的思考模式(即“垃圾桶”或“目标/类”)虽然。
CodeGo.net,它并不需要一个释放的插件(打造一个插件/包做“导出”-&“部署插件和
只是在其他情况下的记录有问题。
在这里,一个小的修改,以弗rad的答案,以避免在输出目录添加到路径的思考模式。
所不同的是仅在BundleDir类。它似乎在我所有的测试工作得很好:
public class BundleUrlType implements UrlType {
public static final String BUNDLE_PROTOCOL = "bundleresource";
private final B
public BundleUrlType(Bundle bundle) {
this.bundle =
public Dir createDir(URL url) {
return new BundleDir(bundle, url);
public boolean matches(URL url) {
return BUNDLE_PROTOCOL.equals(url.getProtocol());
public static class BundleDir implements Dir {
private final B
private static String urlPath(Bundle bundle, URL url) {
URL resolvedURL = FileLocator.resolve(url);
String resolvedURLAsfile = resolvedURL.getFile();
URL bundleRootURL = bundle.getEntry("/");
URL resolvedBundleRootURL = FileLocator.resolve(bundleRootURL);
String resolvedBundleRootURLAsfile = resolvedBundleRootURL.getFile();
return("/"+resolvedURLAsfile.substring(resolvedBundleRootURLAsfile.length()));
} catch (IOException e) {
throw new RuntimeException(e);
public BundleDir(Bundle bundle, URL url) {
//this(bundle, url.getPath());
this(bundle, urlPath(bundle,url));
public BundleDir(Bundle bundle, String p) {
this.bundle =
this.path =
if (path.startsWith(BUNDLE_PROTOCOL + ":")) {
path = path.substring((BUNDLE_PROTOCOL + ":").length());
public String getPath() {
public Iterable&File& getFiles() {
return new Iterable&Vfs.File&() {
public Iterator&Vfs.File& iterator() {
return new AbstractIterator&Vfs.File&() {
final Enumeration&URL& entries = bundle.findEntries(path, "*.class", true);
protected Vfs.File computeNext() {
return entries.hasMoreElements() ? new BundleFile(BundleDir.this, entries.nextElement()) : endOfData();
public void close() { }
public static class BundleFile implements File {
private final BundleD
private final S
private final URL
public BundleFile(BundleDir dir, URL url) {
this.dir =
this.url =
String path = url.getFile();
this.name = path.substring(path.lastIndexOf("/") + 1);
public String getName() {
public String getRelativePath() {
return getFullPath().substring(dir.getPath().length());
public String getFullPath() {
return url.getFile();
public InputStream openInputStream() throws IOException {
return url.openStream();
Eclipse是构建基于OSGi的顶部,你面对的OSGi类加载...那不是一件容易的战斗中取胜。
看看这篇文章尼尔?巴特利特:OSGi的准备-加载类。你也可以谷歌为“OSGi的哥们policy”。
本文标题 :在Eclipse中使用时思考库工作不插电
本文地址 :CodeGo.net/386763/
Copyright (C) 2014 CodeGo.net 沪ICP备号 联&系& c&o&d&e&g&o &@&1&2&6&.&c&o&m

我要回帖

更多关于 self reflection 的文章

 

随机推荐